mirror of
https://github.com/silverstripe/silverstripe-widgets
synced 2024-10-22 17:05:54 +02:00
BUGFIX: Fixed issue caused by chosen when dropdowns are used in a widget's cms fields
This commit is contained in:
parent
b3b203735d
commit
7be0e11eb7
@ -21,8 +21,8 @@
|
|||||||
opacity: 0.6,
|
opacity: 0.6,
|
||||||
handle: '.handle',
|
handle: '.handle',
|
||||||
update: function(e, ui) {parentRef.updateWidgets(e, ui)},
|
update: function(e, ui) {parentRef.updateWidgets(e, ui)},
|
||||||
placeholder: 'ui-state-highlight',
|
placeholder: 'ui-state-highlight',
|
||||||
forcePlaceholderSize: true
|
forcePlaceholderSize: true
|
||||||
});
|
});
|
||||||
|
|
||||||
// Figure out maxid, this is used when creating new widgets
|
// Figure out maxid, this is used when creating new widgets
|
||||||
@ -168,11 +168,16 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
/*$('div.usedWidgets .TreeDropdownField').entwine({
|
/**
|
||||||
getName: function() {
|
* Disable chosen
|
||||||
return 'Widget_TDF_Endpoint';
|
*/
|
||||||
|
$('div.usedWidgets .field.dropdown select, div.usedWidgets .field select[multiple]').entwine({
|
||||||
|
onmatch: function() {
|
||||||
|
$(this).addClass('no-chzn');
|
||||||
|
|
||||||
|
this._super();
|
||||||
}
|
}
|
||||||
});*/
|
});
|
||||||
|
|
||||||
$('div.usedWidgets div.Widget').entwine({
|
$('div.usedWidgets div.Widget').entwine({
|
||||||
onmatch: function() {
|
onmatch: function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user