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:
Ingo Schommer 2012-03-01 11:59:28 +01:00
parent 0b0e24b0ec
commit 23bd11281d

View File

@ -274,7 +274,7 @@ jQuery.noConflict();
/** /**
* Trigger dialogs with iframe based on the links href attribute (see ssui-core.js). * 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, UUID: null,
onmatch: function() { onmatch: function() {
this._super(); this._super();
@ -336,7 +336,7 @@ jQuery.noConflict();
* the DOM element on creation, rather than onclick - which allows us to decorate * the DOM element on creation, rather than onclick - which allows us to decorate
* the field with a calendar icon * the field with a calendar icon
*/ */
$('.cms-container .field.date input.text').entwine({ $('.cms .field.date input.text').entwine({
onmatch: function() { onmatch: function() {
var holder = $(this).parents('.field.date:first'), config = holder.data(); var holder = $(this).parents('.field.date:first'), config = holder.data();
if(!config.showcalendar) return; if(!config.showcalendar) return;
@ -363,7 +363,7 @@ jQuery.noConflict();
* we can fix the height cropping. * we can fix the height cropping.
*/ */
$('.cms-container .field.dropdown').entwine({ $('.cms .field.dropdown').entwine({
onmatch: function() { onmatch: function() {
$(this).find("select:not(.no-chzn)").chosen(); $(this).find("select:not(.no-chzn)").chosen();
$(this).addClass("has-chzn"); $(this).addClass("has-chzn");