Merge branch 'patch-17' of https://github.com/Fabii547/WCF into Fabii547-patch-17
authorTim Düsterhus <duesterhus@woltlab.com>
Wed, 1 Jun 2016 16:10:06 +0000 (18:10 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Wed, 1 Jun 2016 16:10:06 +0000 (18:10 +0200)
1  2 
wcfsetup/install/files/js/WoltLab/WCF/Date/Picker.js
wcfsetup/install/files/js/WoltLab/WCF/Ui/Confirmation.js
wcfsetup/install/files/js/WoltLab/WCF/Ui/ItemList.js
wcfsetup/install/files/js/WoltLab/WCF/Ui/Message/InlineEditor.js
wcfsetup/install/files/js/WoltLab/WCF/Ui/Mobile.js

index c25c0b5627acd3e1bb91cb2755c482634fd2923c,79bc1d12d30187b1c76df9a8a8a494a77206a4a8..63ee5681d5b3d4060e2399090f1d324e29af405d
@@@ -338,10 -340,15 +338,10 @@@ define
                        var formSubmit = elBySel('.formSubmit', editor);
                        
                        var buttonSave = elBySel('button[data-type="save"]', formSubmit);
-                       buttonSave.addEventListener('click', this._save.bind(this));
+                       buttonSave.addEventListener(WCF_CLICK_EVENT, this._save.bind(this));
                        
 -                      if (this._options.extendedForm) {
 -                              var buttonExtended = elBySel('button[data-type="extended"]', formSubmit);
 -                              buttonExtended.addEventListener(WCF_CLICK_EVENT, this._prepareExtended.bind(this));
 -                      }
 -                      
                        var buttonCancel = elBySel('button[data-type="cancel"]', formSubmit);
-                       buttonCancel.addEventListener('click', this._restoreMessage.bind(this));
+                       buttonCancel.addEventListener(WCF_CLICK_EVENT, this._restoreMessage.bind(this));
                        
                        EventHandler.add('com.woltlab.wcf.redactor', 'submitEditor_' + id, (function(data) {
                                data.cancel = true;