mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-03 06:38:51 +02:00
ENHANCEMENT: Fields can be excluded from change tracking using a ".no-change-track" class.
This commit is contained in:
parent
9e6273ce9a
commit
304c3cd5d3
@ -18,6 +18,11 @@
|
|||||||
* Base edit form, provides ajaxified saving
|
* Base edit form, provides ajaxified saving
|
||||||
* and reloading itself through the ajax return values.
|
* and reloading itself through the ajax return values.
|
||||||
* Takes care of resizing tabsets within the layout container.
|
* Takes care of resizing tabsets within the layout container.
|
||||||
|
*
|
||||||
|
* Change tracking is enabled on all fields within the form. If you want
|
||||||
|
* to disable change tracking for a specific field, add a "no-change-track"
|
||||||
|
* class to it.
|
||||||
|
*
|
||||||
* @name ss.Form_EditForm
|
* @name ss.Form_EditForm
|
||||||
* @require jquery.changetracker
|
* @require jquery.changetracker
|
||||||
*
|
*
|
||||||
@ -40,7 +45,7 @@
|
|||||||
* (Object)
|
* (Object)
|
||||||
*/
|
*/
|
||||||
ChangeTrackerOptions: {
|
ChangeTrackerOptions: {
|
||||||
ignoreFieldSelector: '.ss-upload :input'
|
ignoreFieldSelector: '.no-change-track, .ss-upload :input'
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user