qcy1121 / jwysiwyg

Automatically exported from code.google.com/p/jwysiwyg
GNU General Public License v2.0
0 stars 0 forks source link

form submit handler autosave fails #220

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
version 0.95

954 if (this.options.autoSave) {
955     $form.bind("submit.wysiwyg", this.autoSaveFunction);
956 }

handler executes in form context which has no autoSaveFunction(), error thrown, 
any subsequent submit handlers not executed.

Original issue reported on code.google.com by bmuras...@gmail.com on 23 Feb 2011 at 2:15

GoogleCodeExporter commented 9 years ago
suggest:

if (this.options.autoSave) {
    $form.bind("submit.wysiwyg", $.proxy(this.autoSaveFunction, this));
}

Original comment by bmuras...@gmail.com on 23 Feb 2011 at 2:33