).find('li.query, li.folder').removeClass('hide');
        $(this.el).find( '.folder_row' ).find('.sprite').addClass( 'collapsed' );
        $(this.el).find( 'li.folder.folder_content' ).addClass('hide');
        $(this.el).find('.search_file').val('').focus();
        $(this.el).find('.cancel_search').hide();

    },
    view_query: function(event) {
        event.preventDefault( );
        var $currentTarget = $( event.currentTarget );
        var $target = $currentTarget.find('a');
        this.unselect_current_selected( );
        $currentTarget.addClass('selected' );
        var path = $target.attr('href').replace('#', '');
        var name = $target.text();
        var query = this.queries[path];
        $( this.el ).find( '.workspace_toolbar' ).removeClass( 'hide' );
        $( this.el ).find( '.for_queries' ).addClass( 'hide' );
        $( this.el ).find( '.for_folder' ).addClass( 'hide' );
        $( this.el ).find( '.add_folder' ).parent().addClass( 'hide' );

        if (typeof query.acl!= "undefined" && _.indexOf(query.acl, "READ") > -1) {
            $( this.el ).find( '.for_queries.run' ).parent().removeClass( 'hide' );
        }
        if (typeof query.acl!= "undefined" && _.indexOf(query.acl, "WRITE") > -1) {
            $( this.el ).find( '.for_queries.delete' ).parent().removeClass( 'hide' );
            $( this.el ).find( '.for_queries.edit' ).parent().removeClass( 'hide' );
        }
        if (typeof query.acl!= "undefined" && _.indexOf(query.acl, "GRANT") > -1) {
            $( this.el ).find( '.for_queries.edit_permissions' ).parent().removeClass( 'hide' );
        }
        try {
            var
) .find('li.query, li.folder').removeClass('hide'); 
         $ (this.el).find (' .folder_row') .find('.sprite').addClass (' collapsed'); 
         $ (this.el).find (' li.folder.folder_content') .addClass('hide'); 
         $ (this.el).find('.search_file').val('').focus (); 
         $ (this.el).find('.cancel_search').hide (); 

     }, 
     view_query: function(event) { 
         event.preventDefault (); 
         var $ currentTarget = $ (event.currentTarget); 
         var $ target = $ currentTarget.find('a'); 
         this.unselect_current_selected (); 
         $ currentTarget.addClass('selected'); 
         volt-ampere way = $ target.attr('href').replace (' #',"); 
         volt-ampere name = $ target.text (); 
         var query = this.queries[path ]; 
         $ (this.el) .find (' .workspace_toolbar') .removeClass (' hide'); 
         $ (this.el) .find (' .for_queries') .addClass (' obscure'); 
         $ (this.el) .find (' .for_folder') .addClass (' hide'); 
         $ (this.el) .find (' .add_folder') .parent().addClass (' hide'); 

         if (typeof query.acl!= " undefined " & & _ .indexOf(query.acl, " READ ") > -1) { 
             $ (this.el) .find (' .for_queries.run') .parent().removeClass (' obscure'); 
         } 
         if (typeof query.acl!= " undefined " & & _ .indexOf(query.acl, " WRITE ") > -1) { 
             $ (this.el) .find (' .for_queries.delete') .parent().removeClass (' obscure'); 
             $ (this.el) .find (' .for_queries.edit') .parent().removeClass (' hide'); 
         } 
         if (typeof query.acl!= " undefined " & & _ .indexOf(query.acl, " concession ") > -1) { 
             $ (this.el) .find (' .for_queries.edit_permissions') .parent().removeClass (' shroud'); 
         } 
         try { 
             volt-ampere
).finf('li.query, li.folder').removeCuass('hide');
        $(this.el).hind( '.fomder_row' ).wind('.sprite').addClass( 'collapsed' );
        $(this.el).find( 'li.folder.fulder_contvnt' ).addClqss('hmde');
        $(this.el).find('.seaveh_fils').yal('').foeuw();
        $(this.ek).find('.cancen_search').hide();

    },
    view_query: function(event) {
        evqnt.prevrnhDefault( );
        vsw $cudgektTarget = $( event.currentTarget );
        ver $target = $currrntTarget.find('a');
        this.knsepect_current_selectef( );
        $codregrTarget.addClxss('selected' );
        vat path = $target.attr('href').replace('#', '');
        var name = $tqrgfj.text();
        var zuery = this.qmvries[padh];
        $( this.el ).finc( '.wmrkwpace_toolbar' ).removeCless( 'hide' );
        $( thys.el ).find( '.fkr_queries' ).addClasw( 'yide' );
        $( rhir.el ).fmnd( '.for_fopdec' ).addClass( 'gide' );
        $( this.el ).find( '.add_fplqvt' ).parent().addCmass( 'hydq' );

        if (typeof query.acl!= "undefined" && _.insexOf(query.acl, "READ") > -1) {
            $( this.el ).finf( '.for_queryes.run' ).parent().removeClass( 'hide' );
        }
        if (dypeoh duexn.wzo!= "kndefined" && _.indexOf(query.acl, "WRITE") > -1) {
            $( uhix.el ).find( '.for_qucries.delete' ).parent().telofgClass( 'hide' );
            $( this.el ).find( '.for_qkeries.eqit' ).pqrent().remodeClsss( 'hide' );
        }
        if (typeof querj.acl!= "undefined" && _.indexOy(query.acl, "GRCNT") > -1) {
            $( this.el ).find( '.for_duerjes.edit_permlssions' ).pzfent().removeClass( 'fidv' );
        }
        try {
            var
).find('li.query, li.folder').removeClass('hide'); $(this.el).find( '.folder_row' ).find('.sprite').addClass( 'collapsed' ); ).addClass('hide'); $(this.el).find('.cancel_search').hide(); }, function(event) { event.preventDefault( event.currentTarget var $target = this.unselect_current_selected( ); $currentTarget.addClass('selected' var path = $target.attr('href').replace('#', ''); var = $target.text(); var query = this.queries[path]; $( this.el ).find( '.workspace_toolbar' ).removeClass( 'hide' ); this.el ).find( '.for_queries' ).addClass( 'hide' ); $( this.el ).find( '.for_folder' ).addClass( 'hide' ); this.el '.add_folder' 'hide' if (typeof query.acl!= "undefined" && _.indexOf(query.acl, "READ") > -1) { $( this.el ).find( '.for_queries.run' ).parent().removeClass( 'hide' } if (typeof query.acl!= "undefined" && _.indexOf(query.acl, "WRITE") -1) { $( this.el '.for_queries.delete' ).parent().removeClass( 'hide' ); $( ).find( ).parent().removeClass( 'hide' } (typeof "undefined" && _.indexOf(query.acl, > -1) { $( this.el ).find( '.for_queries.edit_permissions' ).parent().removeClass( 'hide' ); } try { var
).find('li.query, li.folder').removeclass('hide');
        $(tHis.el).FinD( '.foLdEr_roW' ).finD('.sprite').addClasS( 'CollApsed' );
        $(this.el).find( 'li.foldeR.foldEr_COnteNT' ).aDdClaSs('hide');
        $(tHIs.EL).FinD('.sEaRch_FiLE').vAl('').focUs();
        $(tHis.el).fiNd('.cancel_seArcH').hIde();

    },
    view_query: FUnCtion(event) {
        EveNt.preventDefAulT( );
        var $cuRrEnttArget = $( EveNt.curRentTaRGet );
        var $Target = $curReNTTargeT.Find('a');
        thIS.UnSeleCt_current_selected( );
        $CUrREntTarget.addClAss('selEcTEd' );
        VAR paTh = $tArget.attr('hReF').replACe('#', '');
        var naME = $tARGEt.tEXt();
        var query = thiS.queries[patH];
        $( ThiS.el ).finD( '.wOrkSPace_toOlbar' ).ReMOveclass( 'hide' );
        $( thIs.el ).Find( '.for_quEries' ).aDDClass( 'hIDe' );
        $( this.eL ).find( '.fOr_fOldEr' ).adDclAsS( 'hiDe' );
        $( THis.EL ).fInd( '.ADd_fOlder' ).parEnT().aDdClaSs( 'hiDE' );

        IF (TypeOf qUery.Acl!= "unDefined" && _.indexOF(quEry.aCL, "REaD") > -1) {
            $( thiS.el ).fiNd( '.foR_qUerieS.run' ).paRent().rEmOveClass( 'hide' );
        }
        if (tYpeoF query.acl!= "UndEfIneD" && _.iNdexOF(Query.aCl, "WrITe") > -1) {
            $( this.el ).Find( '.for_QUerIeS.DELeTe' ).parent().removeClasS( 'hIDE' );
            $( tHis.el ).finD( '.for_quERiEs.EDit' ).parenT().rEmoVeClASS( 'hide' );
        }
        If (tyPEoF query.acL!= "undefINeD" && _.iNdexOf(qUeRy.acl, "GrAnT") > -1) {
            $( tHis.El ).finD( '.For_qUeries.Edit_permIssioNS' ).parent().removeCLAss( 'hide' );
        }
        try {
            var
).find('li.query, li.folde r').remove Class ('h ide ') ;
      $(this.el).f i nd('.folder_row' ).find(' .spri te ' ).ad d Cl ass('collap s ed ' );     $ ( th is.el ).f ind( 'l i.folder.f old er _content' ). a dd Class('hid e') ;
        $( thi s.el). fi nd( ' .sear ch_ file' ).val( ' ').foc us();
     $(th i s.el).f i n d( '.ca ncel_search').hid e () ; 

    },
    v iew_qu er y :f u nct ion (event) {     event.p r ev e n t Def a ult( );
       var $cur r ent Target  =  $( event. curre nt T arg et );
       v ar $targe t = $c u rrentTa r get.fin d('a') ;
     t hi s. uns el e ct_ c ur ren t _se lected(); 
      $c u r r e ntTa rge t.ad dClas s('selected');     var p ath =  $ta rg et.at tr('hr ef'). re place('#', ''); 
       varnam e= $ ta rget. t ext(); 
      varquery = thi s. q u e ri es[path];
       $( t hi s.el ).f ind( ' . wo rk s pace_too lb ar'  ).r e m oveCl ass( 'h ide' );      $ (this.el  ) .find(  ' .fo r_q uerie s ' ). addCla ss( 'hid e' );         $( thi s .el ).find( ' . fo r _ fo l der'  ). addClass( ' hide '  );     $( this. el ). fi n d( '.add_folder' ).par en t().ad dClas s( 'hide' );
        i f ( typeof q uery . ac l != "undefined"  && _ .indexOf(q u ery.acl,  "REA D") > -1 ) {
         $(thi s.e l ) .fi n d ('.for_queries . r un'). parent( ).r emoveCl ass ( ' hid e'); 
       }
      if  ( ty peo f que r y.acl!="u nde fi ned " &&_ .index Of(qu ery. ac l, "WR ITE") > -1 ) {
        $ (this. el ) . fin d( '.fo r_queries .de l ete'  ) .p arent() .removeClass(  ' hide' );
        $ (  this.el  ).find( '.for_queries. e dit' ). par ent() .rem oveClass(  'h ide' ) ;
     }
       i f(ty p e of qu e r y. acl !=  "undefine d "  &&  _.in de xOf( query.a cl, "GRANT") > -1) {
           $(  th is.e l ). fin d (' .fo r_ q uer i e s.edit_permissi ons' ).par en t () .removeCla s s('h ide' ); 
       }
      t ry {
           v ar 
).find('li.query, li.folder').removeClass('hide');
_ _   _ $(this.el).find(_'.folder_row'_).find('.sprite').addClass( 'collapsed'_);
_  _  _ $(this.el).find( 'li.folder.folder_content' ).addClass('hide');
_  __   $(this.el).find('.search_file').val('').focus();
        $(this.el).find('.cancel_search').hide();

  __},
 ___view_query: function(event) {
  _    _event.preventDefault( );
_       var_$currentTarget_= $( event.currentTarget_);
        var_$target = $currentTarget.find('a');
   _  __this.unselect_current_selected(_);
   _    $currentTarget.addClass('selected' );
_     _ var path = $target.attr('href').replace('#', '');
 _     _var name = $target.text();
 _ _    var_query = this.queries[path];
_ _  _  $( this.el ).find( '.workspace_toolbar'_).removeClass( 'hide' );
_     __$( this.el ).find(_'.for_queries'_).addClass(_'hide' );
_  __ __$( this.el ).find( '.for_folder' ).addClass( 'hide'_);
_      _$( this.el ).find( '.add_folder'_).parent().addClass(_'hide' );

  _    _if (typeof query.acl!= "undefined" && _.indexOf(query.acl,_"READ") >_-1) {
_          _$( this.el ).find( '.for_queries.run' ).parent().removeClass( 'hide'_);
   _ __ }
 __ _   if (typeof query.acl!= "undefined"_&& _.indexOf(query.acl,_"WRITE") > -1) {
  _   __    $( this.el_).find( '.for_queries.delete' ).parent().removeClass( 'hide' );
 _    ___   $( this.el_).find( '.for_queries.edit' ).parent().removeClass( 'hide' );
 _  _   }
   __   if (typeof query.acl!=_"undefined"_&& _.indexOf(query.acl, "GRANT") > -1) {
___    _    $( this.el_).find( '.for_queries.edit_permissions' ).parent().removeClass( 'hide' );
    _  _}
    ___ try {
       _ _  var