0
我已创建了创建用户和批量jQuery的一个超级链接应该
如果一个超单击弹出被开了两个超链接时被启用,并在同一时间,当其他超链接(批次)不应该被打开
(目前两者都被打开)
请告诉我如何解决这个?
请参阅我的代码:
var create = dojo.create("div",{
id:"create_links",
className:"iconRow1",
innerHTML:"<a class='popupLink' href='javascript:openDialog()'>Create User</a> <span>|</span><a href='javascript:openFileDialog()'>Batch </a>"
}
function openDialog() {
dojo.byId('create_links').disabled=true;
$("#create_links").addClass("disabled");
// some code
}
其他超链接代码是
function openFileDialog() {
$("#fileuploadfun").attr('title',"Batch");
$("#fileuploadfun").dialog({ position: 'center' , zIndex: 0, width: 500, show: 'slide', resizable:'false' });
}
Currently the Dialog bOxes are created in this way :(This is for Batch)
$("#fileuploadfun").attr('title',"Batch ");
$("#fileuploadfun").dialog({ position: 'center' , zIndex: 0, width: 500, show: 'slide', resizable:'false' });
和用户对话框中创建这样:
$("#createUserDialog").dialog("option", "title", 'Create User');
$("#createUserDialog").dialog("open");
只是一个说明,使用JavaScript的'onclick'属性并设置'href =“#”' –
声音就像你只需要让你的对话框模式(在JQuery UI中它是一个选项),那样if一个是开放的,该网站的其他部分在封闭之前无法使用。 – Codecraft