Skip to content

Commit

Permalink
Removed the onchange event call when a form is submitted.
Browse files Browse the repository at this point in the history
  • Loading branch information
spocke committed Sep 24, 2013
1 parent db18131 commit 9a98c27
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
6 changes: 0 additions & 6 deletions js/tinymce/classes/ui/Form.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,6 @@ define("tinymce/ui/Form", [
* @return {Object} Event arguments object.
*/
submit: function() {
// Blur current control so a onchange is fired before submit
var ctrl = this.getParentCtrl(document.activeElement);
if (ctrl) {
ctrl.blur();
}

return this.fire('submit', {data: this.toJSON()});
},

Expand Down
6 changes: 0 additions & 6 deletions js/tinymce/classes/ui/Window.js
Original file line number Diff line number Diff line change
Expand Up @@ -367,12 +367,6 @@ define("tinymce/ui/Window", [
* @return {Object} Event arguments object.
*/
submit: function() {
// Blur current control so a onchange is fired before submit
var ctrl = this.getParentCtrl(document.activeElement);
if (ctrl) {
ctrl.blur();
}

return this.fire('submit', {data: this.toJSON()});
},

Expand Down

0 comments on commit 9a98c27

Please sign in to comment.