From a137360085eac559e73d6bbc9635fb634190c41b Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Thu, 3 Mar 2011 12:00:33 +1300 Subject: [PATCH] MINOR Temporarily disabled onchange bindings in ThumbnailStripField, as they fail in IE7/IE8 --- javascript/ThumbnailStripField.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/javascript/ThumbnailStripField.js b/javascript/ThumbnailStripField.js index 860d4c60..192991a1 100755 --- a/javascript/ThumbnailStripField.js +++ b/javascript/ThumbnailStripField.js @@ -29,7 +29,8 @@ ThumbnailStripField.prototype = { // HACK: This is hard-coded to only work with TreeDropdownFields var parentField = $(RegExp.$1).parentNode; 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]; @@ -58,11 +59,7 @@ ThumbnailStripField.prototype = { this.innerHTML = '

Loading...

'; 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, { - method : 'get', - onComplete : callback, - onFailure : function(response) { errorMessage("Error getting files", response); } - }); + jQuery(this).load(ajaxURL, callback); }, reapplyBehaviour: function() {