summaryrefslogtreecommitdiff
path: root/program/js/app.js
diff options
context:
space:
mode:
authorsvncommit <devs@roundcube.net>2007-09-27 07:21:56 +0000
committersvncommit <devs@roundcube.net>2007-09-27 07:21:56 +0000
commit69f17cfda10febf0e4b8401b2f1cf371b8f49568 (patch)
tree21d37a764646f872d7702577718f90671edc4948 /program/js/app.js
parente2f3738fcd04995b8acaf8715827f9dd1903fdb4 (diff)
Disable moving a folder to one of it's own children.
Diffstat (limited to 'program/js/app.js')
-rw-r--r--program/js/app.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/program/js/app.js b/program/js/app.js
index 28b788d86..3e1129bf1 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -2463,6 +2463,7 @@ function rcube_webmail()
var reg = RegExp('['+RegExp.escape(this.env.delimiter)+']?[^'+RegExp.escape(this.env.delimiter)+']+$');
if (this.drag_active && this.check_droptarget(id) &&
(id != this.env.folder.replace(reg, '')) &&
+ (!id.match(new RegExp('^'+this.env.folder+RegExp.escape(this.env.delimiter)))) &&
(row = document.getElementById(this.get_folder_row_id(id))))
if (find_in_array(this.env.defaultfolders, id)>=0)
{