Merge pull request #77 from webbuilders-group/master

BUG: Fixed issue where beforeSave() was not being called when saving
This commit is contained in:
Damian Mooyman 2015-03-06 10:20:38 +13:00
commit f35800541e

View File

@ -42,7 +42,7 @@
// Ensure correct sort values are written when page is saved // Ensure correct sort values are written when page is saved
// TODO Adjust to new event listeners // TODO Adjust to new event listeners
$('.cms-container').bind('submitform', this.beforeSave); $('.cms-container').bind('submitform', function(e) {parentRef.beforeSave(e)});
}, },
rewriteWidgetAreaAttributes: function() { rewriteWidgetAreaAttributes: function() {
@ -144,7 +144,7 @@
sortWidgets: function() { sortWidgets: function() {
// Order the sort by the order the widgets are in the list // Order the sort by the order the widgets are in the list
$('#usedWidgets-'+$(this).attr('name')).children().each(function() { $('#usedWidgets-'+$(this).attr('name')).children().each(function(i) {
var div = $(this)[0]; var div = $(this)[0];
if(div.nodeName != '#comment') { if(div.nodeName != '#comment') {