OSDN Git Service

Client is version0.4.29, added exportConsole.
[pettanr/pettanr.git] / public / assets / system.js
index 448f1e8..23913d2 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * pettanR system.js
- *   version 0.4.27
+ *   version 0.4.29
  *   
  * author:
  *   itozyun
@@ -1778,7 +1778,7 @@ pettanr.premiumSatge = pettanr.view.registerApplication( function(){
 
        elmButton.onclick = clickOK;
        
-       var BASE_PATH = pettanr.LOCAL === true ? 'resource_pictures\/' : pettanr.CONST.PETTANR_ROOT_PATH + 'resource_pictures\/',
+       var BASE_PATH = pettanr.LOCAL === true ? 'resource_pictures\/' : pettanr.CONST.RESOURCE_PICTURE_PATH,
                THUMB_PATH = BASE_PATH, // + 'thumbnail/',
                LIMIT_FILESIZE = 1024 * 10; // 10KB
 
@@ -2015,11 +2015,12 @@ pettanr.textEditor = pettanr.view.registerApplication( function(){
        
        function clickOK(){
                textElement && textElement.text( jqTextarea.val() );
-               onUpdateFunction ? window.setTimeout( asyncCallback, 50 ) : pettanr.textEditor.shutdown();
+               window.setTimeout( asyncCallback, 0 );
        }
        
        function asyncCallback(){
-               onUpdateFunction( textElement );
+               onUpdateFunction && onUpdateFunction( textElement );
+               onUpdateFunction = textElement = null;
                pettanr.textEditor.shutdown();
        }
        
@@ -2082,7 +2083,6 @@ pettanr.textEditor = pettanr.view.registerApplication( function(){
        }
        this.onClose = function(){
                jqWrap.hide();
-               textElement = onUpdateFunction = null;
        }
 });