From f380d88c806dd2958c4cc96b304ab227347845f0 Mon Sep 17 00:00:00 2001 From: Julian Seidenberg Date: Thu, 24 Feb 2011 17:10:01 +1300 Subject: [PATCH] BUGFIX: removing colon (:) from selectors throughout SilverStripe. jQuery 1.5 is stricter about what is allowed in a selector and the colon is not allowed for elements like :select. --- javascript/CMSMain.js | 2 +- javascript/LeftAndMain.AddForm.js | 2 +- javascript/LeftAndMain.BatchActions.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/javascript/CMSMain.js b/javascript/CMSMain.js index c8145107..66d0f6a4 100644 --- a/javascript/CMSMain.js +++ b/javascript/CMSMain.js @@ -59,7 +59,7 @@ // special case: we can't use CMSSiteTreeFilter together with other options this.find('select[name=FilterClass]').change(function(e) { - var others = self.find('.field').not($(this).parents('.field')).find(':input,:select'); + var others = self.find('.field').not($(this).parents('.field')).find(':input,select'); if(e.target.value == 'CMSSiteTreeFilter_Search') others.removeAttr('disabled'); else others.attr('disabled','disabled'); }) diff --git a/javascript/LeftAndMain.AddForm.js b/javascript/LeftAndMain.AddForm.js index 4046d0d0..b359ba0a 100644 --- a/javascript/LeftAndMain.AddForm.js +++ b/javascript/LeftAndMain.AddForm.js @@ -114,7 +114,7 @@ // Note: Uses siteTreeHints global var tree = this.getTree(), origOptions = this.getOrigOptions(), - dropdown = this.find(':select[name=PageType]'); + dropdown = this.find('select[name=PageType]'); if(!selectedNode) selectedNode = tree.firstSelected(); // Clear all existing