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]);
}