Changeset 888 in subversion
- Timestamp:
- Oct 19, 2007 10:04:43 AM (6 years ago)
- File:
-
- 1 edited
-
trunk/roundcubemail/program/js/app.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/js/app.js
r887 r888 2477 2477 var row, folder; 2478 2478 var reg = RegExp('['+RegExp.escape(this.env.delimiter)+']?[^'+RegExp.escape(this.env.delimiter)+']+$'); 2479 if (this.env.subscriptionrows[id] && 2480 (folder = this.env.subscriptionrows[id][0]) && 2481 this.drag_active && this.check_droptarget(folder) && 2482 (folder != this.env.folder.replace(reg, '')) && 2483 (!folder.match(new RegExp('^'+RegExp.escape(this.env.folder+this.env.delimiter)))) && 2484 (row = document.getElementById(id))) 2485 if (find_in_array(this.env.defaultfolders, folder)>=0) 2486 { 2487 if (this.env.folder.replace(reg, '')!='') 2479 2480 if (this.drag_active && (row = document.getElementById(id))) 2481 if (this.env.subscriptionrows[id] && 2482 (folder = this.env.subscriptionrows[id][0])) 2483 { 2484 if (this.check_droptarget(folder) && 2485 (folder != this.env.folder.replace(reg, '')) && 2486 (!folder.match(new RegExp('^'+RegExp.escape(this.env.folder+this.env.delimiter))))) 2488 2487 { 2489 this.set_env('dstfolder', this.env.delimiter);2490 this.set_classname( this.subscription_list.frame, 'droptarget', true);2488 this.set_env('dstfolder', folder); 2489 this.set_classname(row, 'droptarget', true); 2491 2490 } 2492 2491 } 2492 else if (this.env.folder.match(new RegExp(RegExp.escape(this.env.delimiter)))) 2493 { 2494 this.set_env('dstfolder', this.env.delimiter); 2495 this.set_classname(this.subscription_list.frame, 'droptarget', true); 2496 } 2497 } 2498 2499 2500 this.unfocus_subscription = function(id) 2501 { 2502 var row; 2503 this.set_env('dstfolder', null); 2504 if (this.env.subscriptionrows[id] && 2505 (row = document.getElementById(id))) 2506 this.set_classname(row, 'droptarget', false); 2493 2507 else 2494 {2495 this.set_env('dstfolder', folder);2496 this.set_classname(row, 'droptarget', true);2497 }2498 }2499 2500 2501 this.unfocus_subscription = function(id)2502 {2503 var row, folder;2504 if (this.env.subscriptionrows[id] &&2505 (folder = this.env.subscriptionrows[id][0]) &&2506 (row = document.getElementById(id)))2507 {2508 this.set_env('dstfolder', null);2509 if (find_in_array(this.env.defaultfolders, folder)>=0)2510 2508 this.set_classname(this.subscription_list.frame, 'droptarget', false); 2511 else2512 this.set_classname(row, 'droptarget', false);2513 }2514 2509 } 2515 2510
Note: See TracChangeset
for help on using the changeset viewer.
