- if(li.tagName != 'LI') {
- if (li.tagName == 'IMG' && li.parentNode.tagName == 'LI')
- li = t.parentNode;
- else
- return;
- }
- switch(window.parent.name) {
- case 'PlinnImageDialog' :
- if (li.className == 'contentish-selected') {
- window.parent.updateOrInsertImage(li.link);
- window.close();
- }
- break;
- case 'StandaloneBrowser' :
- if (li.className == 'contentish-selected') {
- window.opener.SetUrl(li.link);
- window.close();
- }
- break;
- case '' :
- case '_blank' :
- var funcNum = GetUrlParam('CKEditorFuncNum');
- window.opener.CKEDITOR.tools.callFunction(funcNum, li.link);
- window.close();
- break;
- }
+ if(li.tagName != 'LI') {
+ if (li.tagName == 'IMG' && li.parentNode.tagName == 'LI')
+ li = t.parentNode;
+ else
+ return;
+ }
+ console.log('dblclick !', li, window.parent);
+ switch(window.parent.name) {
+ case 'PlinnImageDialog' :
+ if (li.className == 'contentish-selected') {
+ window.parent.updateOrInsertImage(li.link);
+ window.close();
+ }
+ break;
+ case 'StandaloneBrowser' :
+ if (li.className == 'contentish-selected') {
+ window.opener.SetUrl(li.link);
+ window.close();
+ }
+ break;
+ default :
+ var funcNum = GetUrlParam('CKEditorFuncNum');
+ window.opener.CKEDITOR.tools.callFunction(funcNum, li.link);
+ window.close();
+ break;
+ }