mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MINOR Ensure global CMS behaviour is applied in dialogs and frames like UploadField as well (they only have the .cms class, not .cms-container)
This commit is contained in:
parent
0b0e24b0ec
commit
23bd11281d
@ -274,7 +274,7 @@ jQuery.noConflict();
|
||||
/**
|
||||
* Trigger dialogs with iframe based on the links href attribute (see ssui-core.js).
|
||||
*/
|
||||
$('.cms-container .ss-ui-dialog-link').entwine({
|
||||
$('.cms .ss-ui-dialog-link').entwine({
|
||||
UUID: null,
|
||||
onmatch: function() {
|
||||
this._super();
|
||||
@ -336,7 +336,7 @@ jQuery.noConflict();
|
||||
* the DOM element on creation, rather than onclick - which allows us to decorate
|
||||
* the field with a calendar icon
|
||||
*/
|
||||
$('.cms-container .field.date input.text').entwine({
|
||||
$('.cms .field.date input.text').entwine({
|
||||
onmatch: function() {
|
||||
var holder = $(this).parents('.field.date:first'), config = holder.data();
|
||||
if(!config.showcalendar) return;
|
||||
@ -363,7 +363,7 @@ jQuery.noConflict();
|
||||
* we can fix the height cropping.
|
||||
*/
|
||||
|
||||
$('.cms-container .field.dropdown').entwine({
|
||||
$('.cms .field.dropdown').entwine({
|
||||
onmatch: function() {
|
||||
$(this).find("select:not(.no-chzn)").chosen();
|
||||
$(this).addClass("has-chzn");
|
||||
|
Loading…
Reference in New Issue
Block a user