Changeset 14d494f in github
- Timestamp:
- Sep 28, 2011 5:00:25 AM (20 months ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.7, release-0.8
- Children:
- 1991b77
- Parents:
- 0c1cb2f
- Files:
-
- 3 edited
-
CHANGELOG (modified) (1 diff)
-
program/js/app.js (modified) (5 diffs)
-
program/js/editor.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
CHANGELOG
rb175394 r14d494f 2 2 =========================== 3 3 4 - Fix misleading display when chaning editor type (#1488104) 4 5 - Add loading indicator on contact delete 5 6 - Fix bug where after delete message rows can be added to the list of another folder (#1487752) -
program/js/app.js
rb175394 r14d494f 440 440 this.command = function(command, props, obj) 441 441 { 442 var ret; 443 442 444 if (obj && obj.blur) 443 445 obj.blur(); … … 463 465 // process external commands 464 466 if (typeof this.command_handlers[command] === 'function') { 465 varret = this.command_handlers[command](props, obj);467 ret = this.command_handlers[command](props, obj); 466 468 return ret !== undefined ? ret : (obj ? false : true); 467 469 } 468 470 else if (typeof this.command_handlers[command] === 'string') { 469 varret = window[this.command_handlers[command]](props, obj);471 ret = window[this.command_handlers[command]](props, obj); 470 472 return ret !== undefined ? ret : (obj ? false : true); 471 473 } … … 473 475 // trigger plugin hooks 474 476 this.triggerEvent('actionbefore', {props:props, action:command}); 475 varret = this.triggerEvent('before'+command, props);477 ret = this.triggerEvent('before'+command, props); 476 478 if (ret !== undefined) { 477 // abort if one the handlers returned false479 // abort if one of the handlers returned false 478 480 if (ret === false) 479 481 return false; … … 481 483 props = ret; 482 484 } 485 486 ret = undefined; 483 487 484 488 // process internal command … … 1046 1050 default: 1047 1051 var func = command.replace(/-/g, '_'); 1048 if (this[func] && typeof this[func] === 'function') 1049 this[func](props); 1050 break; 1051 } 1052 1053 this.triggerEvent('after'+command, props); 1052 if (this[func] && typeof this[func] === 'function') { 1053 ret = this[func](props); 1054 } 1055 break; 1056 } 1057 1058 if (this.triggerEvent('after'+command, props) === false) 1059 ret = false; 1054 1060 this.triggerEvent('actionafter', {props:props, action:command}); 1055 1061 1056 return obj ? false : true;1062 return ret === false ? false : obj ? false : true; 1057 1063 }; 1058 1064 -
program/js/editor.js
r66df084 r14d494f 116 116 flag.value = '1'; 117 117 } 118 else { 119 if (!res && select.tagName == 'SELECT') 120 select.value = 'html'; 118 else if (res) { 121 119 if (flagElement && (flag = rcube_find_object(flagElement))) 122 120 flag.value = '0'; … … 125 123 rcube_find_object(rcmail.env.composebody).focus(); 126 124 } 125 else { // !res 126 if (select.tagName == 'SELECT') 127 select.value = 'html'; 128 else if (select.tagName == 'INPUT') 129 select.checked = true; 130 } 127 131 }
Note: See TracChangeset
for help on using the changeset viewer.
