Changeset 226

Show
Ignore:
Timestamp:
12/19/08 12:41:09 (4 years ago)
Author:
samuraraujo
Message:
 
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Explorator/trunk/public/javascripts/explorator_ui.js

    r225 r226  
    5959    $$('.resource').each(function(resource){ 
    6060        resource.identify(); 
    61         resource.ondblclick = function(e){ 
    62             if ((e.ctrlKey || e.metaKey)) { 
    63                 resource.ui_open(); 
    64             } 
    65             else { 
    66                 ajax_create(new SemanticExpression().go(resource.readAttribute('resource'))); 
    67             } 
    68             e.stopPropagation(); 
    69         }; 
     61        resource.ondblclick = function(e){         
     62            resource.ui_open(); 
     63            e.stopPropagation(); 
     64        }; 
     65//         resource.onclick = function(e){         
     66//                 $('seachbykeyword').value=resource.readAttribute('resource'); 
     67//                      e.stopPropagation(); 
     68//        }; 
     69     
    7070        /* resource.onclick = function(e){           
    7171         if (e.altKey){ 
     
    7575         };*/ 
    7676    }); 
     77         
    7778    $$('.all').each(function(resource){ 
    7879        resource.identify(); 
     
    240241//////////////////////////////SELECTION BEHAVIOURS////////////////////////////////////////////////////// 
    241242function register_ui_selection_behaviour(){ 
    242     $$('.select').each(function(item){     
    243         item.onclick = function(e){ 
    244              item.select('.properties').each(function(x){ 
     243    $$('.select').each(function(item){ 
     244        item.onclick = function(e){ 
     245            item.select('.properties').each(function(x){ 
    245246                if (!x.hasClassName('_NO_MINIMIZE') && x.visible()) { 
    246247                    x.ui_hide(); 
    247248                } 
    248249            }); 
     250                        var uri = item.readAttribute('resource'); 
     251 
     252                        $('seachbykeyword').value=                      uri.replace('<','').replace('>','') 
     253                 
     254         
    249255            item.select('._collapseproperties').invoke('hide'); 
    250256            item.select('._expandproperties').invoke('show');