From 23bd11281dbe54abe40057e7320666e90dfac9c2 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Thu, 1 Mar 2012 11:59:28 +0100 Subject: [PATCH] MINOR Ensure global CMS behaviour is applied in dialogs and frames like UploadField as well (they only have the .cms class, not .cms-container) --- admin/javascript/LeftAndMain.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/admin/javascript/LeftAndMain.js b/admin/javascript/LeftAndMain.js index c1eee5bfe..4d4ee43ef 100644 --- a/admin/javascript/LeftAndMain.js +++ b/admin/javascript/LeftAndMain.js @@ -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");