kopia lustrzana https://github.com/c9/core
onYes/no are optional in question dialog
rodzic
6862b66d21
commit
510a9ad77e
|
@ -54,7 +54,7 @@ define(function(require, module, exports) {
|
||||||
|
|
||||||
var gotYesNo = false;
|
var gotYesNo = false;
|
||||||
plugin.once("hide", function(){
|
plugin.once("hide", function(){
|
||||||
!gotYesNo && cancel && onNo(false, true, metadata);
|
!gotYesNo && cancel && onNo && onNo(false, true, metadata);
|
||||||
});
|
});
|
||||||
|
|
||||||
plugin.update([
|
plugin.update([
|
||||||
|
@ -63,22 +63,22 @@ define(function(require, module, exports) {
|
||||||
{ id: "yestoall", visible: all, onclick: function(){
|
{ id: "yestoall", visible: all, onclick: function(){
|
||||||
gotYesNo = true;
|
gotYesNo = true;
|
||||||
plugin.hide();
|
plugin.hide();
|
||||||
onYes(true, metadata);
|
onYes && onYes(true, metadata);
|
||||||
}},
|
}},
|
||||||
{ id: "notoall", visible: all, onclick: function(){
|
{ id: "notoall", visible: all, onclick: function(){
|
||||||
gotYesNo = true;
|
gotYesNo = true;
|
||||||
plugin.hide();
|
plugin.hide();
|
||||||
onNo(true, false, metadata);
|
onNo && onNo(true, false, metadata);
|
||||||
}},
|
}},
|
||||||
{ id: "yes", onclick: function(){
|
{ id: "yes", onclick: function(){
|
||||||
gotYesNo = true;
|
gotYesNo = true;
|
||||||
plugin.hide();
|
plugin.hide();
|
||||||
onYes(false, metadata);
|
onYes && onYes(false, metadata);
|
||||||
}},
|
}},
|
||||||
{ id: "no", onclick: function(){
|
{ id: "no", onclick: function(){
|
||||||
gotYesNo = true;
|
gotYesNo = true;
|
||||||
plugin.hide();
|
plugin.hide();
|
||||||
onNo(false, false, metadata);
|
onNo && onNo(false, false, metadata);
|
||||||
}}
|
}}
|
||||||
]);
|
]);
|
||||||
}, options.queue === false);
|
}, options.queue === false);
|
||||||
|
|
Ładowanie…
Reference in New Issue