summaryrefslogtreecommitdiff
path: root/program/js/app.js
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2006-07-30 19:38:06 +0000
committerthomascube <thomas@roundcube.net>2006-07-30 19:38:06 +0000
commitf9c107afbe9bb01627a9e6de48efdfbbda8e56e6 (patch)
treec9758b06f319953e2491c601d8fc09bf859e295a /program/js/app.js
parentfe79b1bcf828b6b9f947c4b32d5e7bf297438be4 (diff)
Fixed folder renaming; added confirmation after deleting a folder
Diffstat (limited to 'program/js/app.js')
-rw-r--r--program/js/app.js13
1 files changed, 8 insertions, 5 deletions
diff --git a/program/js/app.js b/program/js/app.js
index 84e9e45c7..51d9f8570 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -2848,10 +2848,12 @@ function rcube_webmail()
row.cells[3].firstChild.onclick = new Function(this.ref+".command('delete-folder','"+name.replace('\'','\\\'')+"')");
// add new folder to rename-folder list and clear input field
- if (!replace && (form = this.gui_objects.editform) && form.elements['_folder_name'])
+ if (!replace && (form = this.gui_objects.editform))
{
- form.elements['_folder_oldname'].options[form.elements['_folder_oldname'].options.length] = new Option(name,name);
- form.elements['_folder_name'].value = '';
+ if (form.elements['_folder_oldname'])
+ form.elements['_folder_oldname'].options[form.elements['_folder_oldname'].options.length] = new Option(name,name);
+ if (form.elements['_folder_name'])
+ form.elements['_folder_name'].value = '';
}
};
@@ -2909,7 +2911,8 @@ function rcube_webmail()
}
}
- form.elements['_folder_newname'].value = '';
+ if (form && form.elements['_folder_newname'])
+ form.elements['_folder_newname'].value = '';
};
@@ -3151,7 +3154,7 @@ function rcube_webmail()
if (!this.gui_objects.message)
return false;
-
+
if (this.message_timer)
clearTimeout(this.message_timer);