Plugin Directory

Changeset 622368


Ignore:
Timestamp:
11/08/2012 01:23:17 AM (13 years ago)
Author:
mdjekic
Message:

Synchi 4.6 fix 2/2

Location:
synchi
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • synchi/tags/4.6/css/synchi_editor.css

    r622360 r622368  
    8282    opacity: 1 !important;
    8383}
     84
     85#wp-content-editor-container textarea {
     86    display: none;
     87}
  • synchi/tags/4.6/js/synchi_editor.js

    r622365 r622368  
    1010var synchi_fullscreen = false;
    1111var synchi_controls = false;
     12var synchi_lock = false;
    1213
    1314/**
     
    8384    }
    8485   
    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) {       
    8691        // handle the controls menu
    8792        synchi_controls = {};
     
    96101        $("#ed_toolbar").remove();
    97102        synchi_controls.parent.prepend(synchi_controls.synchi);
     103       
     104        // release lock
     105        synchi_lock = false;
    98106    });   
    99107}
     
    106114 */
    107115function synchi_switch(mode,element) {
     116    // check lock
     117    if(synchi_lock) return false;
     118   
     119    // check mode
    108120    switch(mode) {
    109121        case 'visual':if(synchi_mode != 'visual') {
     
    207219$(function(){
    208220    synchi_showLoadingMessage(synchi_labels['Initializing Synchi IDE']);
    209     setTimeout(synchi_onLoad, 250);
     221    setTimeout(synchi_onLoad, 1000);
    210222});
  • synchi/trunk/css/synchi_editor.css

    r622360 r622368  
    8282    opacity: 1 !important;
    8383}
     84
     85#wp-content-editor-container textarea {
     86    display: none;
     87}
  • synchi/trunk/js/synchi_editor.js

    r622365 r622368  
    1010var synchi_fullscreen = false;
    1111var synchi_controls = false;
     12var synchi_lock = false;
    1213
    1314/**
     
    8384    }
    8485   
    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) {       
    8691        // handle the controls menu
    8792        synchi_controls = {};
     
    96101        $("#ed_toolbar").remove();
    97102        synchi_controls.parent.prepend(synchi_controls.synchi);
     103       
     104        // release lock
     105        synchi_lock = false;
    98106    });   
    99107}
     
    106114 */
    107115function synchi_switch(mode,element) {
     116    // check lock
     117    if(synchi_lock) return false;
     118   
     119    // check mode
    108120    switch(mode) {
    109121        case 'visual':if(synchi_mode != 'visual') {
     
    207219$(function(){
    208220    synchi_showLoadingMessage(synchi_labels['Initializing Synchi IDE']);
    209     setTimeout(synchi_onLoad, 250);
     221    setTimeout(synchi_onLoad, 1000);
    210222});
Note: See TracChangeset for help on using the changeset viewer.