Dialog_MapLink.js
上传用户:simon2hong
上传日期:2021-11-18
资源大小:16746k
文件大小:2k
源码类别:

OA系统

开发平台:

C#

  1. var OxO72ea=["inp_src","inp_title","inp_target","sel_protocol","btnbrowse","editor","","href","value","title","target","onclick","length","options","://",":","others","selectedIndex"];var inp_src=Window_GetElement(window,OxO72ea[0x0],true);var inp_title=Window_GetElement(window,OxO72ea[0x1],true);var inp_target=Window_GetElement(window,OxO72ea[0x2],true);var sel_protocol=Window_GetElement(window,OxO72ea[0x3],true);var btnbrowse=Window_GetElement(window,OxO72ea[0x4],true);var obj=Window_GetDialogArguments(window);var editor=obj[OxO72ea[0x5]]; SyncToView() ; function SyncToView(){var src=obj[OxO72ea[0x7]].replace(/$s*/,OxO72ea[0x6]); Update_sel_protocol(src) ; inp_src[OxO72ea[0x8]]=src ;if(obj[OxO72ea[0x9]]){ inp_title[OxO72ea[0x8]]=obj[OxO72ea[0x9]] ;} ;if(obj[OxO72ea[0xa]]){ inp_target[OxO72ea[0x8]]=obj[OxO72ea[0xa]] ;} ;}  ; btnbrowse[OxO72ea[0xb]]=function btnbrowse_onclick(){ function Ox20e(Ox330){if(Ox330){ inp_src[OxO72ea[0x8]]=Ox330 ;} ;}  ; editor.SetNextDialogWindow(window) ;if(Browser_IsSafari()){ editor.ShowSelectFileDialog(Ox20e,inp_src.value,inp_src) ;} else { editor.ShowSelectFileDialog(Ox20e,inp_src.value) ;} ;}  ; function sel_protocol_change(){var src=inp_src[OxO72ea[0x8]].replace(/$s*/,OxO72ea[0x6]);for(var i=0x0;i<sel_protocol[OxO72ea[0xd]][OxO72ea[0xc]];i++){var Ox60=sel_protocol[OxO72ea[0xd]][i][OxO72ea[0x8]];if(src.substr(0x0,Ox60.length).toLowerCase()==Ox60){ src=src.substr(Ox60[OxO72ea[0xc]],src[OxO72ea[0xc]]-Ox60.length) ;break ;} ;} ;var Ox332=src.indexOf(OxO72ea[0xe]);if(Ox332!=-0x1){ src=src.substr(Ox332+0x3,src[OxO72ea[0xc]]-0x3-Ox332) ;} ;var Ox332=src.indexOf(OxO72ea[0xf]);if(Ox332!=-0x1){ src=src.substr(Ox332+0x1,src[OxO72ea[0xc]]-0x1-Ox332) ;} ;var Ox333=sel_protocol[OxO72ea[0x8]];if(Ox333==OxO72ea[0x10]){ Ox333=OxO72ea[0x6] ;} ; inp_src[OxO72ea[0x8]]=Ox333+src ;}  ; function Update_sel_protocol(src){var Ox335=false;for(var i=0x0;i<sel_protocol[OxO72ea[0xd]][OxO72ea[0xc]];i++){var Ox60=sel_protocol[OxO72ea[0xd]][i][OxO72ea[0x8]];if(src.substr(0x0,Ox60.length).toLowerCase()==Ox60){if(sel_protocol[OxO72ea[0x11]]!=i){ sel_protocol[OxO72ea[0x11]]=i ;} ; Ox335=true ;break ;} ;} ;if(!Ox335){ sel_protocol[OxO72ea[0x11]]=sel_protocol[OxO72ea[0xd]][OxO72ea[0xc]]-0x1 ;} ;}  ; function insert_link(){var arr= new Array(); arr[0x0]=inp_src[OxO72ea[0x8]] ;if(inp_target[OxO72ea[0x8]]){ arr[0x1]=inp_target[OxO72ea[0x8]] ;} ;if(inp_title[OxO72ea[0x8]]){ arr[0x2]=inp_title[OxO72ea[0x8]] ;} ; Window_SetDialogReturnValue(window,arr) ; Window_CloseDialog(window) ;}  ;