Changeset 622368
- Timestamp:
- 11/08/2012 01:23:17 AM (13 years ago)
- Location:
- synchi
- Files:
-
- 4 edited
-
tags/4.6/css/synchi_editor.css (modified) (1 diff)
-
tags/4.6/js/synchi_editor.js (modified) (5 diffs)
-
trunk/css/synchi_editor.css (modified) (1 diff)
-
trunk/js/synchi_editor.js (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
synchi/tags/4.6/css/synchi_editor.css
r622360 r622368 82 82 opacity: 1 !important; 83 83 } 84 85 #wp-content-editor-container textarea { 86 display: none; 87 } -
synchi/tags/4.6/js/synchi_editor.js
r622365 r622368 10 10 var synchi_fullscreen = false; 11 11 var synchi_controls = false; 12 var synchi_lock = false; 12 13 13 14 /** … … 83 84 } 84 85 85 synchi_call('get_editor_controls', {}, function(response) { 86 // enable lock 87 synchi_lock = true; 88 89 // get editor controls 90 synchi_call('get_editor_controls', {}, function(response) { 86 91 // handle the controls menu 87 92 synchi_controls = {}; … … 96 101 $("#ed_toolbar").remove(); 97 102 synchi_controls.parent.prepend(synchi_controls.synchi); 103 104 // release lock 105 synchi_lock = false; 98 106 }); 99 107 } … … 106 114 */ 107 115 function synchi_switch(mode,element) { 116 // check lock 117 if(synchi_lock) return false; 118 119 // check mode 108 120 switch(mode) { 109 121 case 'visual':if(synchi_mode != 'visual') { … … 207 219 $(function(){ 208 220 synchi_showLoadingMessage(synchi_labels['Initializing Synchi IDE']); 209 setTimeout(synchi_onLoad, 250);221 setTimeout(synchi_onLoad, 1000); 210 222 }); -
synchi/trunk/css/synchi_editor.css
r622360 r622368 82 82 opacity: 1 !important; 83 83 } 84 85 #wp-content-editor-container textarea { 86 display: none; 87 } -
synchi/trunk/js/synchi_editor.js
r622365 r622368 10 10 var synchi_fullscreen = false; 11 11 var synchi_controls = false; 12 var synchi_lock = false; 12 13 13 14 /** … … 83 84 } 84 85 85 synchi_call('get_editor_controls', {}, function(response) { 86 // enable lock 87 synchi_lock = true; 88 89 // get editor controls 90 synchi_call('get_editor_controls', {}, function(response) { 86 91 // handle the controls menu 87 92 synchi_controls = {}; … … 96 101 $("#ed_toolbar").remove(); 97 102 synchi_controls.parent.prepend(synchi_controls.synchi); 103 104 // release lock 105 synchi_lock = false; 98 106 }); 99 107 } … … 106 114 */ 107 115 function synchi_switch(mode,element) { 116 // check lock 117 if(synchi_lock) return false; 118 119 // check mode 108 120 switch(mode) { 109 121 case 'visual':if(synchi_mode != 'visual') { … … 207 219 $(function(){ 208 220 synchi_showLoadingMessage(synchi_labels['Initializing Synchi IDE']); 209 setTimeout(synchi_onLoad, 250);221 setTimeout(synchi_onLoad, 1000); 210 222 });
Note: See TracChangeset
for help on using the changeset viewer.