mirror of
https://github.com/silverstripe/silverstripe-widgets
synced 2024-10-22 17:05:54 +02:00
BUG: Fixed issue where before save was not being called
BUG: Fixed JavaScript error undefined variable when calling sortWidgets
This commit is contained in:
parent
8ee406675e
commit
512a6aafee
@ -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') {
|
||||||
|
Loading…
Reference in New Issue
Block a user