OSDN Git Service

client is version0.4.31, update add image button.
[pettanr/pettanr.git] / public / assets / system.js
index cba80f3..45f770a 100644 (file)
@@ -974,7 +974,7 @@ pettanr.finder = ( function(){
                }
        }
        
-       var FinderClass = function( ELM_CONTAINER, tree, header, footer ){
+       var FinderClass = function( ELM_CONTAINER, tree, header, footer, viewerOption ){
                var ICON_ARRAY = [],
                        BREAD_ARRAY = [],
                        elmContainer = ELM_ORIGIN_CONTAINER.cloneNode( true ),
@@ -1066,7 +1066,7 @@ pettanr.finder = ( function(){
                        _app.boot( _file );
                }
                function onViwer( _file, _app ){
-                       _app.bootInOverlay( _file );
+                       _app.bootInOverlay( _file, viewerOption );
                }
                function onAction( _file ){
 
@@ -1127,10 +1127,10 @@ pettanr.finder = ( function(){
                init: function(){
                        
                },
-               createFinder: function( _applicationReference, _elmTarget, _tree, _header, _footer ){
+               createFinder: function( _applicationReference, _elmTarget, _tree, _header, _footer, _viewerOption ){
                        if( pettanr.view.isApplicationReference( _applicationReference ) === false ) return;
                        
-                       var _finder = new FinderClass( _elmTarget, _tree, _header, _footer );
+                       var _finder = new FinderClass( _elmTarget, _tree, _header, _footer, _viewerOption );
                        FINDER_ARRAY.push( _finder );
                        return _finder;
                },
@@ -1153,8 +1153,8 @@ pettanr.finder = ( function(){
 
 
 pettanr.driver = ( function(){
-       var MyAuthorID = 'current_author' in window ? current_author.id : ( pettanr.DEBUG ? 1 : -1 ),
-               MyArtistID = 'current_artist' in window ? current_artist.id : ( pettanr.DEBUG ? 1 : -1 ),
+       var MyAuthorID = 'current_author' in window ? current_author.id : ( pettanr.CONST.SERVER_SUPPORT === false ? 1 : -1 ),
+               MyArtistID = 'current_artist' in window ? current_artist.id : ( pettanr.CONST.SERVER_SUPPORT === false ? 1 : -1 ),
                Driver = {
                        getSeqentialFiles: function( _file){
                                var _data = FileAPI.getFileData( _file),