Skip to content

Commit

Permalink
Merge pull request #764 from aurelijusb/gallery-modal-submit-fix
Browse files Browse the repository at this point in the history
Force submit widgetData on Gallery modal submit via keyboard
  • Loading branch information
maskas committed Oct 27, 2015
2 parents 50102c0 + a2f7e74 commit 20a396b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Ip/Internal/Content/Widget/Gallery/assets/Gallery.js
Expand Up @@ -364,6 +364,12 @@ var IpWidget_Gallery = function () {
if (callback) {
$.proxy(callback, context)();
}
});

// Force include widgetData on submit. Overwrites default submit action. See ipInitForms()
this.settingsPopup.find('.ipsAjaxSubmit').off('submit.ipSubmit').on('submit.ipSubmit', function (e) {
$.proxy(saveSettings, context)(callback);
e.preventDefault();
})
};

Expand Down

0 comments on commit 20a396b

Please sign in to comment.