Changeset 2607 in subversion
- Timestamp:
- Jun 4, 2009 4:01:31 PM (4 years ago)
- File:
-
- 1 edited
-
trunk/roundcubemail/program/js/app.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/program/js/app.js
r2592 r2607 1263 1263 for (var k in model) { 1264 1264 if (li = this.get_folder_li(k)) { 1265 pos = $(li.firstChild).offset(); 1266 // only visible folders 1267 if (height = li.firstChild.offsetHeight) 1268 this.env.folder_coords[k] = { x1:pos.left, y1:pos.top, x2:pos.left + li.firstChild.offsetWidth, y2:pos.top + height }; 1265 // only visible folders 1266 if (height = li.firstChild.offsetHeight) { 1267 pos = $(li.firstChild).offset(); 1268 this.env.folder_coords[k] = { x1:pos.left, y1:pos.top, x2:pos.left + li.firstChild.offsetWidth, y2:pos.top + height, on:0 }; 1269 } 1269 1270 } 1270 1271 } … … 1309 1310 return; 1310 1311 } 1311 1312 1313 var last = this.env.last_folder_target; 1312 1314 // over the folders 1313 1315 for (var k in this.env.folder_coords) { 1314 1316 pos = this.env.folder_coords[k]; 1315 if (this.check_droptarget(k) && ((mouse.x >= pos.x1) && (mouse.x < pos.x2) 1316 && (mouse.y >= pos.y1) && (mouse.y < pos.y2))) { 1317 if ((mouse.x >= pos.x1) && (mouse.x < pos.x2) 1318 && (mouse.y >= pos.y1) && (mouse.y < pos.y2) 1319 && this.check_droptarget(k)) { 1320 if (k == last) 1321 continue; 1317 1322 $(this.get_folder_li(k)).addClass('droptarget'); 1318 1323 this.env.last_folder_target = k; 1319 } 1320 else { 1324 this.env.folder_coords[k].on = 1; 1325 } 1326 else if (pos.on){ 1327 if (k == last) 1328 this.env.last_folder_target = null; 1329 this.env.folder_coords[k].on = 0; 1321 1330 $(this.get_folder_li(k)).removeClass('droptarget'); 1322 if (k == this.env.last_folder_target) 1323 this.env.last_folder_target = null; 1324 } 1331 } 1325 1332 } 1326 1333 } 1327 1334 }; 1328 1335 1329 1336 this.collapse_folder = function(id) 1330 1337 {
Note: See TracChangeset
for help on using the changeset viewer.
