Ignore:
Timestamp:
05/01/11 21:08:52 (13 years ago)
Author:
gaba
Message:

scroll details
deleting cache correction

Location:
MDService2/trunk/MDService2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • MDService2/trunk/MDService2/WebContent/scripts/mdservice_ui_detail.js

    r1260 r1269  
    219219                        get.addClass('cmd_up');
    220220                }
     221                //$('#detailblock').children('.content').scrollTop($(this.content_wrapper).position().top);
     222                $('#detailblock').scrollTop($(this.content_wrapper).position().top + $(this.content_wrapper).find('.detail-header').height());
    221223        default://pane ?
    222224        };
  • MDService2/trunk/MDService2/src/eu/clarin/cmdi/mdservice/action/AdminAction.java

    r1234 r1269  
    7474               
    7575                //getServletRequest().getRemoteUser()
    76                 if ( getServletRequest().getRemoteUser().toLowerCase().equals("admin")){
    77                         HashMap<String,String> clear_params = new HashMap<String,String>();
    78                         if (this.getActionkey() != null){
    79                                 clear_params.put("type", getActionkey());       
     76                if (getServletRequest().getRemoteUser() != null){
     77                        if ( getServletRequest().getRemoteUser().toLowerCase().equals("admin")){
     78                                HashMap<String,String> clear_params = new HashMap<String,String>();
     79                                if (this.getActionkey() != null){
     80                                        clear_params.put("type", getActionkey());       
     81                                }
     82                                if (this.getRepository() != null){
     83                                        clear_params.put("repository", String.valueOf(getRepository()));       
     84                                }       
     85                                if (this.getDate() != null){
     86                                        clear_params.put("date", getDate());   
     87                                }
     88                                if (this.getDatefrom() != null){
     89                                        clear_params.put("datefrom", getDatefrom());   
     90                                }
     91                                if (this.getDateto() != null){
     92                                        clear_params.put("dateto", getDateto());       
     93                                }
     94                                //int removed;
     95                                this.setResultStream(Cache.getCache().clear(clear_params));
     96                               
     97                                //String ret = "1";
     98                                //this.setResultStream( new ByteArrayInputStream(String.valueOf(removed).getBytes()));
     99                               
     100                                return SUCCESS;
     101
    80102                        }
    81                         if (this.getRepository() != null){
    82                                 clear_params.put("repository", String.valueOf(getRepository()));       
    83                         }       
    84                         if (this.getDate() != null){
    85                                 clear_params.put("date", getDate());   
    86                         }
    87                         if (this.getDatefrom() != null){
    88                                 clear_params.put("datefrom", getDatefrom());   
    89                         }
    90                         if (this.getDateto() != null){
    91                                 clear_params.put("dateto", getDateto());       
    92                         }
    93                         //int removed;
    94                         this.setResultStream(Cache.getCache().clear(clear_params));
    95                        
    96                         //String ret = "1";
    97                         //this.setResultStream( new ByteArrayInputStream(String.valueOf(removed).getBytes()));
    98                        
    99                         return SUCCESS;
    100 
    101103                }
    102104               
Note: See TracChangeset for help on using the changeset viewer.