/*\r
* pettanR work.js\r
- * version 0.4.19\r
+ * version 0.4.21\r
* \r
* author:\r
* itozyun\r
delete this.onInit;\r
},\r
onOpen: function( _w, _h){\r
- finder = finder || pettanr.finder.createFinder( document.getElementById( 'image-exproler-container'), pettanr.driver.createPictureTree());\r
- finder.open( _w, _h );\r
+ finder = finder || pettanr.finder.createFinder( pettanr.editor, document.getElementById( 'image-exproler-container'), pettanr.driver.createPictureTree());\r
+ finder.resize( _w, _h );\r
},\r
onResize: function( _w, _h ){\r
finder.resize( _w, _h );\r
this.MIN_WIDTH = 320;\r
this.MIN_HEIGHT = 320;\r
this.init = function(){\r
- instance.jqWrap = jqWrap = $( '#comic-console-wrapper').hide();\r
+ jqWrap = $( '#comic-console-wrapper').hide();\r
$( '#comic-console-post-button').click( clickOK );\r
$( '#comic-console-cancel-button').click( clickCancel );\r
\r
\r
delete instance.init;\r
}\r
- this.jqWrap = null;\r
this.onOpen = function( w, h ){\r
instance.init && instance.init();\r
\r
this.onPaneResize = function( _windowW, _windowH){\r
jqWrap.css(\r
{\r
- left: Math.floor( ( _windowW -jqWrap.width()) /2),\r
- top: Math.floor( ( _windowH -jqWrap.height()) /2)\r
+ left: Math.floor( ( _windowW - jqWrap.width()) /2),\r
+ top: Math.floor( ( _windowH - jqWrap.height()) /2)\r
}\r
);\r
}\r
this.MIN_WIDTH = 320;\r
this.MIN_HEIGHT = 320;\r
this.init = function(){\r
- instance.jqWrap = jqWrap = $( '#upload-console-wrapper').hide();\r
+ jqWrap = $( '#upload-console-wrapper').hide();\r
$( '#upload-console-post-button').click( clickOK );\r
$( '#upload-console-cancel-button').click( clickCancel );\r
\r
delete instance.init;\r
}\r
- this.jqWrap = null;\r
this.onOpen = function( w, h){\r
instance.init && instance.init();\r
/*\r
this.MIN_WIDTH = 320;\r
this.MIN_HEIGHT = 320;\r
this.init = function(){\r
- instance.jqWrap = jqWrap = $( '#panel-console-wrapper').hide();\r
+ jqWrap = $( '#panel-console-wrapper').hide();\r
$( '#panel-console-post-button').click( clickOK );\r
$( '#panel-console-cancel-button').click( clickCancel );\r
\r
delete instance.init;\r
}\r
- this.jqWrap = null;\r
this.onOpen = function( w, h ){\r
instance.init && instance.init();\r
/*\r
this.MIN_WIDTH = 320;\r
this.MIN_HEIGHT = 320;\r
this.init = function(){\r
- instance.jqWrap = jqWrap = $( '#artist-console-wrapper').hide();\r
+ jqWrap = $( '#artist-console-wrapper').hide();\r
$( '#artist-console-post-button').click( clickOK );\r
$( '#artist-console-cancel-button').click( clickCancel );\r
\r
delete instance.init;\r
}\r
- this.jqWrap = null;\r
this.onOpen = function( w, h ){\r
instance.init && instance.init();\r
/*\r
this.MIN_WIDTH = 320;\r
this.MIN_HEIGHT = 320;\r
this.init = function(){\r
- instance.jqWrap = jqWrap = $( '#output-console-wrapper').hide();\r
+ jqWrap = $( '#output-console-wrapper').hide();\r
jqOutputArea = $( '#output-area');\r
delete instance.init;\r
}\r
- this.jqWrap = null;\r
this.onOpen = function( _w, _h, _text ){\r
instance.init && instance.init();\r
\r
jqWrap.show();\r
- instance.onWindowResize( _w, _h );\r
+ instance.onPaneResize( _w, _h );\r
jqOutputArea.val( _text).focus();\r
}\r
- this.onWindowResize = function( _w, _h){\r
+ this.onPaneResize = function( _w, _h){\r
jqWrap.css(\r
{\r
left: Math.floor( ( _w -jqWrap.width()) /2),\r