// Display confirmation dialog box
function showConfirm(txtTitle, txtMsg , callback){
getDivDialog().text(txtMsg).dialog({
, title: txtTitle
}
,"No" : function(){
$(this).dialog("close"); In ui.1.7.1, the dialog can only be displayed once per button click event. Speechless. . .
There is no explanation in the official documentation. After a Google search, I found that in ui.1.7.1 the dialog must be initialized first.
In document.ready(function(){
//Initialize dialog
})
Copy code
The code is as follows:
$("#layout-confirm").dialog({
autoOpen: false,
modal: true,
title: "Delete"
});
Copy code
The code is as follows:
delText.click(function( ; function() {
(file.type == 0){
"Cancel": function(){
layout-confirm").dialog ("open");
});
ok, done~~
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn