Java Script
Java Script
low.ui.WorkflowDiagramProcessor', '',
true, true, true);
wfDiagram.addDefaultActions();
wfDiagram.slider = new GwtSlideEffect('td2', 'activityIc
on');
if ('' != '')
wfDiagram.workflowChanged('');
}
function diagramWorkflowUnload_() {
wfDiagram.destroy();
}</script><div style="border:none; visibility:hidden"><form acti
on="slushbucket.do" method="GET" style="display:inline" name="sys_personalize"><
input name="sysparm_ck" id="sysparm_ck" type="hidden" value="b43092656f4d710086b
0a9302e3ee44948ea51cef2758e957212b291a02bcb67cadb5554"></input><input type="hidd
en" value="workflow_ide.do?sysparm_cancelable=true@99@sysparm_nostack=true" name
="sysparm_referring_url"></input><input type="hidden" value="" name="sysparm_vie
w"></input></form></div><script>(function() {
addLateLoadEvent(throwFrameLoaded);
// find if padding is needed
var pad = (isMSIE6 || isMSIE7 || navigator.userAgent.indexOf('MSIE 8') !
= -1) ? 1 : 0;
function throwFrameLoaded() {
try {
if (window.parent.CustomEvent) {
// history suggests that if we don't size it down on page lo
ad,
// when we check the height it will show the previous page's
height
window.parent.CustomEvent.fire('content_frame.loaded', self.
name, 10);
window.parent.CustomEvent.fire('content_frame.loaded', self.
name, getPageHeight());
}
} catch (e) {}
}
function throwFrameSized() {
try {
if (window.parent.CustomEvent) {
// IE9/IE10: resize events will be continuously triggered wh
en there is a difference between document.body.scrollHeight and window.frameElem
ent.height
// to solve this issue, we do not fire event if the height w
e are going to set is the same as the height obtained after the previous fired e
vent
var previousHeight = window["g_iframe_height"];
var pageHeight = getPageHeight();
if (previousHeight != pageHeight) {
window.parent.CustomEvent.fire('content_frame.resized',
self.name, pageHeight);
// IE9/IE10: page height may be changed again after the
above firing. So we have to call getPageHeight() to get the new height after the
above event has been fired.
window["g_iframe_height"] = getPageHeight();
}
}
} catch (e) {}
}
/**
* Simply speaking, scrollHeight and offsetHeight work differently on d
ifferent browsers
* and in and out of quirks mode. IE9 has bugs that do not report them
correctly even if
* you pick the right one, so we've built some extra controls.
*/
function getPageHeight() {
var popupElement, popupHeight;
// first, look for popup
if ($$('body > div.popup').length > 0) {
popupElement = $$('body > div.popup')[0];
popupHeight = popupElement.scrollHeight + popupElement.offsetTop
;
//padding is needed or else the bottom border of the popup will
be missing
return (document.body.scrollHeight > popupHeight ? document.body
.scrollHeight : popupHeight) + pad;
}
// then, look for form elements
// use more specific selector to reduce browser response time
if ($$('body > div.section_header_content_no_scroll').length > 0)
return $$('body > div.section_header_content_no_scroll')[0].scro
llHeight;
// then, look for touch scroll elements *CALGARY and forward*
if ($$('body > .touch_scroll').length > 0)
return $$('body > .touch_scroll')[0].scrollHeight;
// then, get the normal page height
if (document.body.scrollHeight)
return document.body.scrollHeight;
return document.body.offsetHeight;
}
// start observing only after page has been loaded to avoid handling lar
ge number of resize events especially on IE 7 and IE 8
addAfterPageLoadedEvent(function() {
CustomEvent.observe('frame.resized', throwFrameSized);
Event.observe(document.onresize ? document : window, "resize", throw
FrameSized);
_frameChanged();
});
})();</script><script type="text/javascript" src="/scripts/js_includes_last.
jsx?v=08-27-2014_1022&lp=Thu_Oct_16_03_38_45_PDT_2014&c=3_36"></script><
script type="text/javascript">addLoadEvent(function() {
GlideUI.get().fireNotifications();
});
addLoadEvent(function() {
// changeHandlerHack
jslog("fireAllChangeHandlers start");
fireAllChangeHandlers();
jslog("fireAllChangeHandlers end");
});
runBeforeRender.defer();
addLateLoadEvent(function() {
CustomEvent.fireTop('page_loaded_fully');
});
// run all of the addLoad and addLateLoad functions
// last deferred include runs the on after all loaded functions
// see functions_bootstrap.js::runAfterAllLoaded for details on why we c
annot defer execution of runAfterAllLoaded on IE6
//
(hint: it is due to using the window.onload event to run the addRe
nderEvents and addLoadEvents in IE6)
if (!isMSIE6)
runAfterAllLoaded.defer();
else
runAfterAllLoaded();</script><script id="glide:page_timing_div" type
="application/xml"><img class="pointerhand" title="Response time(ms): #{RESP}, n
etwork: #{NETW}, browser: #{REND}, server: #{SERV}" src="images/response_time.gi
fx" height="12" width="12"></img><span style="display:none" class="timing_span">
Response time(ms): #{RESP}, network: #{NETW}, server: #{SERV}, <a class="ti
ming_span">browser: #{REND}</a><span style="position:relative; width: 1px;">&nbs
p;<span style="position:absolute; bottom:0px; right:0px"><span id="page_timing_d
etails"></span><a><div> </div></a></span></span></span></script><script id=
"glide:page_timing_details" type="application/xml"><div class="timing_details">#
{details}</div></script><script id="glide:page_timing_detail_line" type="applica
tion/xml"><div data-children="#{child_count}" class="timing_detail_line #{has_ch
ildren}">#{HTML:name}: #{ms}
#{children}</div></script><script id="glide:page_timing_child_line" typ
e="application/xml"><div class="timing_detail_line timing_detail_line_child">#{H
TML:name}: #{ms}</div></script><script type="text/javascript">var g_serverTime =
parseInt("32") + parseInt("0");
var g_logClientViewRoles = "";
// do not do this for the navigation menu
if (window.name != 'gsft_nav') {
addLoadEvent(function() {
CustomEvent.fire('page_timing', { name: 'SERV', ms: g_serverTi
me });
CustomEvent.fire('page_timing_network', { name: 'NETW', loadTi
me: g_loadTime });
CustomEvent.fire('page_timing', { name: 'REND', startTime: g_l
oadTime });
CustomEvent.fire('page_timing_show', { show: 'false' });
CustomEvent.observe('partial.page.reload', function() {
CustomEvent.fire('page_timing_clear');
});
});
}
// The following line is used to set the time when we start requesti
ng a new page
Event.observe(window, 'beforeunload', function() {
try {
//PRB591320: Wrapping windows.parent call inside try-ca
tch block
//to avoid javascript access denial error when called fr
om embedded iframe URL/source is different domain
window.parent['g_startTime'] = new Date().getTim
e();
} catch (e) {}
CustomEvent.fireTop('request_start', document);
});
// simple pages fire this (stats.do, etc.)
CustomEvent.observe('simple_page.unload', function() {
try {
//PRB591320: Wrapping windows.parent call inside try-ca
tch block
//to avoid javascript access denial error when called fr
om embedded iframe URL/source is different domain
window.parent['g_startTime'] = new Date().getTime();
} catch (e) {}
});
// indicate we have completed the request (used by RequestManager.js
for cancel widget)
addLoadEvent(function() {
CustomEvent.fireTop("request_complete", window.location);var o =
{};
o.types = {};
o.transaction_id = '7990d6256f4d710086b0a9302e3ee46f';
o.table_name = '';
o.form_name = 'workflow_ide';
o.view_id = 'Default view';
o.win = window;
CustomEvent.fire('page_timing_client', o);
});</script></body></html>