mirror of
https://github.com/silverstripe/silverstripe-widgets
synced 2024-10-22 17:05:54 +02:00
Merge pull request #77 from webbuilders-group/master
BUG: Fixed issue where beforeSave() was not being called when saving
This commit is contained in:
commit
f35800541e
@ -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