BUG: Fixed issue where before save was not being called

BUG: Fixed JavaScript error undefined variable when calling sortWidgets
This commit is contained in:
UndefinedOffset 2014-10-06 12:29:21 -03:00
parent 8ee406675e
commit 512a6aafee

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') {