Changeset d0de4eb in github
- Timestamp:
- Aug 4, 2011 6:52:17 AM (22 months ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- 9f07d1d
- Parents:
- c6c99c8
- File:
-
- 1 edited
-
program/js/app.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
program/js/app.js
rd961511 rd0de4eb 4549 4549 .mouseover(function(){ p.focus_subscription(this.id); }) 4550 4550 .mouseout(function(){ p.unfocus_subscription(this.id); }) 4551 .mouseup(function(){ if (p.drag_active) p.subscription_move_folder(); });4552 4551 }; 4553 4552 … … 4560 4559 if (this.drag_active && this.env.mailbox && (row = document.getElementById(id))) 4561 4560 if (this.env.subscriptionrows[id] && 4562 (folder = this.env.subscriptionrows[id][0])) { 4561 (folder = this.env.subscriptionrows[id][0]) !== null 4562 ) { 4563 4563 if (this.check_droptarget(folder) && 4564 4564 !this.env.subscriptionrows[this.get_folder_row_id(this.env.mailbox)][2] && 4565 4565 (folder != this.env.mailbox.replace(reg, '')) && 4566 (!folder.match(new RegExp('^'+RegExp.escape(this.env.mailbox+this.env.delimiter))))) { 4566 (!folder.match(new RegExp('^'+RegExp.escape(this.env.mailbox+this.env.delimiter)))) 4567 ) { 4567 4568 this.set_env('dstfolder', folder); 4568 4569 $(row).addClass('droptarget'); 4569 4570 } 4570 }4571 else if (id == 'mailboxroot') {4572 this.set_env('dstfolder', '');4573 $(row).addClass('droptarget');4574 }4575 else if (this.env.mailbox.match(new RegExp(delim))) {4576 this.set_env('dstfolder', this.env.delimiter);4577 $(this.subscription_list.frame).addClass('droptarget');4578 4571 } 4579 4572 }; … … 4613 4606 reg = RegExp('['+delim+']?[^'+delim+']+$'); 4614 4607 4615 if (this.env.mailbox && this.env.dstfolder && (this.env.dstfolder != this.env.mailbox) &&4608 if (this.env.mailbox && this.env.dstfolder !== null && (this.env.dstfolder != this.env.mailbox) && 4616 4609 (this.env.dstfolder != this.env.mailbox.replace(reg, '')) 4617 4610 ) { 4618 4611 reg = new RegExp('[^'+delim+']*['+delim+']', 'g'); 4619 4612 var basename = this.env.mailbox.replace(reg, ''), 4620 newname = this.env.dstfolder ==this.env.delimiter? basename : this.env.dstfolder+this.env.delimiter+basename;4613 newname = this.env.dstfolder === '' ? basename : this.env.dstfolder+this.env.delimiter+basename; 4621 4614 4622 4615 if (newname != this.env.mailbox) {
Note: See TracChangeset
for help on using the changeset viewer.
