Changeset 226
- Timestamp:
- 12/19/08 12:41:09 (4 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
Explorator/trunk/public/javascripts/explorator_ui.js
r225 r226 59 59 $$('.resource').each(function(resource){ 60 60 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 70 70 /* resource.onclick = function(e){ 71 71 if (e.altKey){ … … 75 75 };*/ 76 76 }); 77 77 78 $$('.all').each(function(resource){ 78 79 resource.identify(); … … 240 241 //////////////////////////////SELECTION BEHAVIOURS////////////////////////////////////////////////////// 241 242 function 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){ 245 246 if (!x.hasClassName('_NO_MINIMIZE') && x.visible()) { 246 247 x.ui_hide(); 247 248 } 248 249 }); 250 var uri = item.readAttribute('resource'); 251 252 $('seachbykeyword').value= uri.replace('<','').replace('>','') 253 254 249 255 item.select('._collapseproperties').invoke('hide'); 250 256 item.select('._expandproperties').invoke('show');
