OSDN Git Service

client is version0.4.19, bug-fix & updated around application.
[pettanr/pettanr.git] / public / assets / system.js
index f3fb48d..698180e 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * pettanR system.js
- *   version 0.4.18
+ *   version 0.4.19
  *   
  * author:
  *   itozyun
@@ -969,7 +969,7 @@ pettanr.finder = ( function(){
                function draw( _w, _h ){
                        w = Type.isFinite( _w ) === true ? _w : w;
                        h = Type.isFinite( _h ) === true ? _h : h;
-                       bodyH = _h - headH;
+                       bodyH = h - headH;
                        var     l = tree.hierarchy() +1,
                                m = BREAD_ARRAY.length,
                                _file, _bread;
@@ -1000,7 +1000,12 @@ pettanr.finder = ( function(){
                        } else {
                                elmBody.className = 'finder-body';
                        }
-                       elmBody.style.height = bodyH + 'px';
+                       try {
+                               elmBody.style.height = bodyH + 'px';
+                       } catch(e){
+                               alert( bodyH)
+                       }
+                       
                        
                        while( l < ICON_ARRAY.length){
                                ICON_ARRAY.pop().destroy();
@@ -1035,9 +1040,13 @@ pettanr.finder = ( function(){
                function onAction( _file ){
 
                }
+               this.rootElement = elmContainer;
+               this.parentElement = ELM_CONTAINER;
+               this.displayName = 'finder';
                this.ID = 'finder';
+               this.MIN_WIDTH = 240;
+               this.MIN_HEIGHT = 240;
                this.init = function(){
-                       ELM_CONTAINER.appendChild( elmContainer);
                        //$( elmLocation).click( onHeadClick);
                        //$( elmContainer).click( onBodyClick);
                        var position = pettanr.util.getAbsolutePosition( elmLocation);
@@ -1062,11 +1071,8 @@ pettanr.finder = ( function(){
                                ICON_ARRAY[ i].onResize( _w );
                        }
                }
-               this.MIN_WIDTH = 240;
-               this.MIN_HEIGHT = 240;
        }
-       
-       pettanr.view.registerAsBasicPane( FinderClass );
+       FinderClass.prototype = pettanr.view._getAbstractApplication();
        
        function getFinderIcon( _file, _elmContainer, w, index, style, onDown, onEditor, onViwer, onAction){
                var _icon;
@@ -1800,6 +1806,7 @@ pettanr.premiumSatge = pettanr.view.registerApplication( function(){
        // this.rootElement = elmWrap;
        this.displayName = 'premiumStage';
        this.ID          = 'premiumStage';
+       this.rootElement = document.getElementById( 'image-gruop-wrapper' );
        this.MIN_WIDTH   = 320;
        this.MIN_HEIGHT  = 320;
        this.init = function(){
@@ -1826,7 +1833,10 @@ pettanr.premiumSatge = pettanr.view.registerApplication( function(){
                        _g_onUpdateFunction = null;
                }
                
-               var _index = ARTIST_ROOT_FILE.search( { id: _artistID } )[ 0 ],
+               var _index = ARTIST_ROOT_FILE.search( {
+                               id:   _artistID,
+                               type: pettanr.driver.FILE_TYPE.ARTIST
+                       } )[ 0 ],
                        _artistFile = ARTIST_ROOT_FILE.getChildFileByIndex( _index ),
                        i, l = 0;
                if( _artistFile !== null ){
@@ -1940,6 +1950,7 @@ pettanr.textEditor = pettanr.view.registerApplication( function(){
        // this.rootElement = elmWrap;
        this.displayName = 'textEditor';
        this.ID          = 'textEditor';
+       this.rootElement = document.getElementById( 'speach-editor-wrapper' );
        this.MIN_WIDTH   = 320;
        this.MIN_HEIGHT  = 320;
        this.init = function(){