/*
* pettanR system.js
- * version 0.4.27
+ * version 0.4.29
*
* author:
* itozyun
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
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();
}
}
this.onClose = function(){
jqWrap.hide();
- textElement = onUpdateFunction = null;
}
});