MDL-43232 JavaScript: Correct typo when cancelling the confirmcancel

This commit is contained in:
Andrew Nicols 2013-12-11 13:29:39 +08:00
parent 0e72987517
commit 44b724c374
4 changed files with 4 additions and 4 deletions

View File

@ -69,7 +69,7 @@ M.core_backup.confirmcancel = {
new Y.EventHandle(M.core_backup.confirmcancel.listeners).detach();
// Simulate the original cancel button click.
c.currentTarget.simulate('click');
e.currentTarget.simulate('click');
}, this);

View File

@ -1 +1 @@
YUI.add("moodle-backup-confirmcancel",function(e,t){M.core_backup=M.core_backup||{},M.core_backup.confirmcancel={listeners:[],config:{},watch_cancel_buttons:function(t){this.config=t,this.listeners.push(e.one(e.config.doc.body).delegate("click",this.confirm_cancel,".confirmcancel",this))},confirm_cancel:function(t){t.preventDefault();var n=new M.core.confirm(this.config);n.on("complete-yes",function(){(new e.EventHandle(M.core_backup.confirmcancel.listeners)).detach(),c.currentTarget.simulate("click")},this),n.show()}}},"@VERSION@",{requires:["node","node-event-simulate","moodle-core-notification-confirm"]});
YUI.add("moodle-backup-confirmcancel",function(e,t){M.core_backup=M.core_backup||{},M.core_backup.confirmcancel={listeners:[],config:{},watch_cancel_buttons:function(t){this.config=t,this.listeners.push(e.one(e.config.doc.body).delegate("click",this.confirm_cancel,".confirmcancel",this))},confirm_cancel:function(t){t.preventDefault();var n=new M.core.confirm(this.config);n.on("complete-yes",function(){(new e.EventHandle(M.core_backup.confirmcancel.listeners)).detach(),t.currentTarget.simulate("click")},this),n.show()}}},"@VERSION@",{requires:["node","node-event-simulate","moodle-core-notification-confirm"]});

View File

@ -69,7 +69,7 @@ M.core_backup.confirmcancel = {
new Y.EventHandle(M.core_backup.confirmcancel.listeners).detach();
// Simulate the original cancel button click.
c.currentTarget.simulate('click');
e.currentTarget.simulate('click');
}, this);

View File

@ -67,7 +67,7 @@ M.core_backup.confirmcancel = {
new Y.EventHandle(M.core_backup.confirmcancel.listeners).detach();
// Simulate the original cancel button click.
c.currentTarget.simulate('click');
e.currentTarget.simulate('click');
}, this);