mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 06:05:56 +00:00
MINOR Temporarily disabled onchange bindings in ThumbnailStripField, as they fail in IE7/IE8
This commit is contained in:
parent
0e9bf073c8
commit
a137360085
@ -29,7 +29,8 @@ ThumbnailStripField.prototype = {
|
|||||||
// HACK: This is hard-coded to only work with TreeDropdownFields
|
// HACK: This is hard-coded to only work with TreeDropdownFields
|
||||||
var parentField = $(RegExp.$1).parentNode;
|
var parentField = $(RegExp.$1).parentNode;
|
||||||
if(parentField) {
|
if(parentField) {
|
||||||
parentField.observeMethod('Change', this.ajaxGetFiles.bind(this));
|
// TODO Fix observing in IE7/IE8
|
||||||
|
// parentField.observeMethod('Change', this.ajaxGetFiles.bind(this));
|
||||||
}
|
}
|
||||||
|
|
||||||
var searchField = $$('#' + this.updateMethod + 'Search input')[0];
|
var searchField = $$('#' + this.updateMethod + 'Search input')[0];
|
||||||
@ -58,11 +59,7 @@ ThumbnailStripField.prototype = {
|
|||||||
this.innerHTML = '<h2>Loading...</h2>';
|
this.innerHTML = '<h2>Loading...</h2>';
|
||||||
var ajaxURL = this.helperURLBase() + '&methodName=' + this.updateMethod + '&folderID=' + folderID + '&searchText=' + searchText + securityID + '&cacheKillerDate=' + parseInt((new Date()).getTime()) + '&cacheKillerRand=' + parseInt(10000 * Math.random());
|
var ajaxURL = this.helperURLBase() + '&methodName=' + this.updateMethod + '&folderID=' + folderID + '&searchText=' + searchText + securityID + '&cacheKillerDate=' + parseInt((new Date()).getTime()) + '&cacheKillerRand=' + parseInt(10000 * Math.random());
|
||||||
|
|
||||||
new Ajax.Updater(this, ajaxURL, {
|
jQuery(this).load(ajaxURL, callback);
|
||||||
method : 'get',
|
|
||||||
onComplete : callback,
|
|
||||||
onFailure : function(response) { errorMessage("Error getting files", response); }
|
|
||||||
});
|
|
||||||
},
|
},
|
||||||
|
|
||||||
reapplyBehaviour: function() {
|
reapplyBehaviour: function() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user