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
1 changed files with 2 additions and 2 deletions

View File

@ -42,7 +42,7 @@
// Ensure correct sort values are written when page is saved
// TODO Adjust to new event listeners
$('.cms-container').bind('submitform', this.beforeSave);
$('.cms-container').bind('submitform', function(e) {parentRef.beforeSave(e)});
},
rewriteWidgetAreaAttributes: function() {
@ -144,7 +144,7 @@
sortWidgets: function() {
// 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];
if(div.nodeName != '#comment') {