Browse files

MINOR Ensure global CMS behaviour is applied in dialogs and frames li…

…ke UploadField as well (they only have the .cms class, not .cms-container)
  • Loading branch information...
1 parent 0b0e24b commit 23bd11281dbe54abe40057e7320666e90dfac9c2 @chillu chillu committed Mar 1, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 admin/javascript/LeftAndMain.js
View
6 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");

0 comments on commit 23bd112

Please sign in to comment.