mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
MDL-43232 JavaScript: Correct typo when cancelling the confirmcancel
This commit is contained in:
parent
0e72987517
commit
44b724c374
@ -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);
|
||||
|
||||
|
||||
|
@ -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"]});
|
||||
|
@ -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);
|
||||
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user