1WFPopup = new function() { 2 return { 3 usePopup : false, 4 popup : null, 5 open: function(SessionID) 6 { 7 var url = 'wfwindow.htm?ID='+SessionID; 8 if (WFPopup.popup) { 9 10 if (WFPopup.popup.closed) { 11 WFPopup.popup=null; 12 } 13 14 } 15 if (!WFPopup.popup) WFPopup.popup=window.open(url, '_blank', 'height=500,width=780,location=0,menubar=0,resizable=1,scrollbars=1,titlebar=0,toolbar=0,directories=0'); 16 else WFPopup.popup.focus(); 17 return true; 18 }, 19 close: function() 20 { 21 if (WFPopup.popup) { 22 WFPopup.popup.close(); 23 WFPopup.popup=null; 24 } 25 } 26 } 27} 28 29 30function WorkflowClick(SessionID) 31{ 32 try { 33 if (WFPopup.usePopup) { 34 WFPopup.open(SessionID); 35 return; 36 } 37 var wd=$("#workflowdialog"); 38 if (wd.length==0) { 39 $('#middle').before('<div id=workflowdialog></div>'); 40 wd=$("#workflowdialog"); 41 wd.dialog({ 42 autoOpen: false, 43 width: 750, 44 modal: false, 45 resizable: false, 46 autoResize: true, 47 canMinimize: true, 48 canMaximize: true, 49 funcMaximize: function(t) { 50 if (WFPopup.open(SessionID)) { 51 WFPopup.usePopup=true; 52 $('#workflowdialog').dialog("close"); 53 return true; 54 } 55 }, 56 title: "Workflow Items" 57 }); 58 59 $("#workflowdialog").dialog("open").parent('div').css('top','100px'); 60 CustomTemplate('Queues.max?preprocess=true&id='+SessionID, wd, 'WFScript', function() { 61 $("#workflowdialog").dialog("open"); 62 if (WFScript.OnLoad) WFScript.OnLoad(); 63 }); 64 } else { 65 66 if ($('#workflowdialog').parents(".ui-dialog").is(":visible")){ 67 wd.dialog("close"); 68 } else { 69 wd.dialog("open"); 70 if (WFScript.Reload) WFScript.Reload(); 71 } 72 // wd.dialog("close"); 73 // $('#workflowdialog').html(''); 74 } 75 } catch(err) { 76 alert(err); 77 } 78} 79 80function WorkflowInit(SessionID) 81{ 82 //$('#WorkflowIcon').unbind('click'); 83 //$('#WorkflowIcon').bind('click', function(){WorkflowClick(SessionID);}); 84 debugger; 85 86 $('#WorkflowMenu').unbind('click'); 87 $('#WorkflowMenu').bind('click', function(){WorkflowClick(SessionID);}); 88}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.