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.

This commit is contained in:
Julian Seidenberg 2011-02-24 17:10:01 +13:00
parent a394831013
commit f380d88c80
3 changed files with 3 additions and 3 deletions

View File

@ -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');
})

View File

@ -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 <option> elements

View File

@ -363,7 +363,7 @@
/**
* Class: #Form_BatchActionsForm :select[name=Action]
*/
$('#Form_BatchActionsForm :select[name=Action]').entwine({
$('#Form_BatchActionsForm select[name=Action]').entwine({
/**
* Function: onchange