From f16b7614a1478120bf830151b618cb699ee20e98 Mon Sep 17 00:00:00 2001 From: Gabriele Date: Thu, 15 Jan 2015 20:15:37 +0100 Subject: [PATCH] WebUI: Fix watched folders on Gecko Passing objects to push() seems to be broken on Firefox, making the preferences impossibile to use when there are watched folders. Fix this by passing strings instead of elements. --- src/webui/www/public/preferences_content.html | 20 ++++--------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/src/webui/www/public/preferences_content.html b/src/webui/www/public/preferences_content.html index 7ef820815..9c598140f 100644 --- a/src/webui/www/public/preferences_content.html +++ b/src/webui/www/public/preferences_content.html @@ -617,16 +617,10 @@ addWatchFolder = function() { if(new_folder.length <= 0) return; var download_here = $('new_watch_folder_dl').getProperty('checked'); - var myinput = new Element('input'); var i = $('watched_folders_tab').getChildren('tbody')[0].getChildren('tr').length; - myinput.setProperty('id', 'text_watch_'+i); - myinput.setProperty('type', 'text'); - myinput.setProperty('value', new_folder); - var mycb = new Element('input'); - mycb.setProperty('type', 'checkbox'); - mycb.setProperty('id', 'cb_watch_'+i); - mycb.setProperty('checked', download_here); + var myinput = ""; + var mycb = ""; WatchedFoldersTable.push([myinput, mycb]); // Clear fields @@ -740,14 +734,8 @@ loadPreferences = function() { updateTempDirEnabled(); var i; for(i=0; i"; + var mycb = ""; WatchedFoldersTable.push([myinput, mycb]); }