');
ghUtils.delay(function() {
ghTable.tablesaw(ghmob('#PTSRCHRESULTS'));
});
},
/**
* createHeader
*
* @private
* @returns {void}
*/
_createHeader: function() {
var headings = [
[(ghmob('.PSSRCHTITLE').length === 0) ? 'Search' : ghmob('.PSSRCHTITLE').text()],
];
ghHeader.addHeadings(headings, false);
},
/**
* formatInstructions
*
* @private
* @returns {void}
*/
_formatInstructions: function() {
if (ghmob('.gh-instructions').length > 0) return;
ghmob('.PAPAGEINSTRUCTIONS').insertBefore(ghmob('[id*="' + ghPage.getWin() + 'divSEARCHADV"]')).wrap('
');
},
/**
* tabs
*
* @private
* @returns {void}
*/
_createTabs: function() {
if (ghmob('.ps_pagecontainer > .gh-tabs').length > 0) return;
var tabs = ghmob(ghSubmenu.pageTabSelectors.join()).addClass('gh-hidden').first().find('span, a');
ghmob.each(tabs, function() {
var tab = ghmob('
');
if (ghmob(this).hasClass('ui-btn-active')) {
tab.find('> span').append(ghmob(this).text().trim());
}
else {
tab.find('> span').append(ghmob('
').html(ghmob(this).clone()).html());
}
ghInterface.linksToTabs(tab.closest('div'));
});
},
/**
* cleanup
*
* @private
* @returns {void}
*/
_cleanup: function() {
ghmob('.PSSRCHPAGE td[style]').removeAttr('style');
ghUtils.removeEmpty('br');
ghmob('input[style]').removeAttr('style');
ghmob('#jqm_main_page [id^=win][id$=divSEARCHADV] td > label').each(function() {
if (ghmob(this).parent().children().length > 1) return;
ghmob(this).css({width: '100%'});
});
ghUtils.delay(function() {
ghmob('[aria-describedby=PSSEARCHDROPDOWN_OP]').closest(ghmob('[data-pnlfldid]')).insertAfter(ghmob('#PSSEARCHDROPDOWN_OP'));
}, 100);
},
/**
* run
*
* @ignore
* @returns {null|void}
*/
run: function() {
if ((typeof ghConfig.search !== 'undefined' && ghConfig.search.enabled === false) || ghPage.isSearch() === false || ghPage.isIFrameModal() === true) return;
this._createFooterButtons();
this._formatOptions();
this._formatResults();
this._createHeader();
this._formatInstructions();
this._createTabs();
},
};
ghInit.module('ghSearch');
/**
* ghRouting
* Provides functions for formatting the approval chain
*
* @module routing
* @owner Jennifer Goncalves
* @config enabled [true, false]
*/
var ghRouting = ghRouting || {
/**
* initCollapsibles
*
* @private
* @param {jQuery} routing
* @returns {void}
*/
_initCollapsibles: function(routing) {
var routingCollapsible = routing.find('.awThreadBoxHeaderExpanded, .awThreadBoxHeaderCollapsed');
routingCollapsible.each(function() {
// wrapper
var wrapper = ghmob(this).parents('table').first();
if (wrapper.parents('.gh-routing').length === 0) {
wrapper.wrapAll('
');
}
wrapper = wrapper.parents('.gh-routing').first();
// insert approver
var addBtn = wrapper.find('img[alt="Insert Approver"]').closest('a');
ghContainer.footer(wrapper, addBtn, { color: 'success', icon: { className: 'fa fa-plus' }});
// config
var toolbar = ghmob(this).find('.awSMThreadToolbar').addClass('gh-hidden').find('a').first();
var collapsibleConfig = {};
if (toolbar.length > 0) {
collapsibleConfig.button = {
icon: (toolbar.find('.fa').length > 0) ? toolbar.find('.fa').attr('class') : 'fa fa-info-circle',
label: toolbar.text().trim(),
selector: toolbar,
};
}
if (ghmob(this).attr('class').indexOf('Expanded') > -1) {
collapsibleConfig.collapsed = false;
}
ghContainer.createCollapsible(wrapper, ghmob(this).find('.awThreadBoxTitle').first(), collapsibleConfig);
});
routing.find('.awThreadCommentsHeader').each(function() {
var collapsed = true;
if (ghmob(this).find('img[src*="COLLAPSE"], [data-gh-replace*="COLLAPSE"]').length > 0) {
collapsed = false;
}
ghmob(this).addClass('awThreadBoxTitle');
ghContainer.createCollapsible(ghmob(this).parents('table').first(), ghmob(this), { collapsed: collapsed });
});
},
/**
* initContainers
*
* @private
* @param {jQuery} routing
* @returns {void}
*/
_initContainers: function(routing) {
var routingContainers = routing.find('[class*="awStatusNode"]').not('[class*="Header"]');
routingContainers.each(function() {
var containerConfig = {};
if (ghmob(this).attr('class').indexOf('NotRouted') > -1 || ghmob(this).attr('class').indexOf('Initiated') > -1 || ghmob(this).attr('class').indexOf('Information') > -1) {
containerConfig.color = 'info';
}
else if (ghmob(this).attr('class').indexOf('Approved') > -1 || ghmob(this).attr('class').indexOf('Completed') > -1) {
containerConfig.color = 'success';
}
else if (ghmob(this).attr('class').indexOf('Pending') > -1 || ghmob(this).attr('class').indexOf('Suspended') > -1 || ghmob(this).attr('class').indexOf('Hold')) {
containerConfig.color = 'warning';
}
else if (ghmob(this).attr('class').indexOf('Denied') > -1 || ghmob(this).attr('class').indexOf('Terminated') > -1) {
containerConfig.color = 'danger';
}
var containerIcon = ghmob(this).find('.fa');
if (containerIcon.length > 0) {
containerIcon.first().closest('td').addClass('gh-hidden');
containerConfig.icon = {
className: containerIcon.first().attr('class'),
};
}
ghContainer.create(ghmob(this), ghmob(this).find('[class*="awStatusNodeHeader"]').first(), containerConfig);
});
},
/**
* init
*
* @private
* @returns {void}
*/
_init: function() {
var routing = ghPage.getField('EOAW_MON_SBP', 1);
var routingHeader = routing.find('.awStageLabel');
if (routing.length === 0) return;
// main container
ghContainer.create(routing, routingHeader);
// collapsibles
this._initCollapsibles(routing);
ghUtils.delay(function() {
ghRouting._initCollapsibles(routing);
}, 100);
// containers
this._initContainers(routing);
ghUtils.delay(function() {
ghRouting._initContainers(routing);
}, 100);
// cleanup
routing.find('[style]').removeAttr('style');
ghUtils.removeEmpty(routing.find('td'));
},
/**
* eventBindings
*
* @private
* @returns {void}
*/
_eventBindings: function() {
ghmob(document)
.off('click.ghRouting')
.on('click.ghRouting', ghPage.getField('EOAW_MON_SBP', 1).find('.ui-collapsible-heading-toggle'), function() {
var collapsible = ghmob(this).closest('.ui-collapsible');
var trigger = collapsible.find('img[src*="COLLAPSE"], img[src*="EXPAND"], [data-gh-replace*="COLLAPSE"], [data-gh-replace*="EXPAND"]').first().closest('a');
var triggerAction = trigger.attr('href');
if (trigger.length === 0 || typeof triggerAction === 'undefined') return;
eval(triggerAction);
});
},
/**
* run
* Formats the approval chain
*
* @ignore
* @returns {null|void}
*/
run: function() {
if (ghConfig.routing.enabled === false || ghPage.getName() === 'EX_SHEET_ENTRY' || ghPage.getField('EOAW_MON_SBP', 1).length === 0) return;
this._eventBindings();
this._init();
},
};
ghInit.module('ghRouting');
/**
* ghActivityGuide
*
* @module activityGuide
* @config enabled [true, false]
*/
var ghActivityGuide = ghActivityGuide || {
/**
* _buttonConfig
*
* @private
* @type {array}
*/
_buttonConfig: [
{
config: {
icon: {
className: 'fa fa-angle-left',
},
},
selector: '.PTCPAGPREVIOUSANCHOR',
text: 'Previous Step',
},
{
config: {
icon: {
className: 'fa fa-angle-right',
},
},
selector: '.PTCPAGNEXTANCHOR',
text: 'Next Step',
},
{
config: {
icon: {
className: 'fa fa-check',
},
},
selector: '[id="ptaiDivMarkComplete"] > a',
},
{
config: {
icon: {
className: 'fa fa-times',
},
},
selector: '[id="ptaiDivXExitAG"] > a',
text: 'Exit Guide',
},
{
config: {
icon: {
className: 'fa fa-times',
},
},
selector: '[id="ptaiDivCancelAG"] > a',
},
{
config: {
icon: {
className: 'fa fa-save',
},
},
selector: '[id="ptaiDivExitAG"] > a',
},
],
/**
* _buttons
*
* @private
* @returns {void}
*/
_buttons: function() {
ghmob('[id="ptailistbuttonstbl"]', ghUtils.getWinTop().document).attr('role', 'presentation').removeAttr('style').find('[style]').removeAttr('style');
ghmob('[id="ptailistbuttonstbl"]', ghUtils.getWinTop().document).find('input[type="button"]').removeAttr('alt title');
ghmob.each(ghActivityGuide._buttonConfig, function(i) {
var button = ghmob(ghActivityGuide._buttonConfig[i].selector, ghUtils.getWinTop().document);
var config = ghActivityGuide._buttonConfig[i].config;
if (button.find('.fa').length === 0) {
button.prepend('
');
}
if (typeof ghActivityGuide._buttonConfig[i].text !== 'undefined') {
button.find('input[type="button"]').attr('value', ghActivityGuide._buttonConfig[i].text);
}
});
},
/**
* _targetContentHeight
*
* @private
* @returns {void}
*/
_targetContentHeight: function() {
ghUtils.delay(function() {
ghPage._targetContentHeight();
}, 1);
},
/**
* _progressBar
*
* @private
* @returns {void}
*/
_progressBar: function() {
var selector = ghmob('[id="PTAIPBDIV"]');
var complete = selector.find('.PTAIProgressBarComplete[style]');
if (complete.length === 0 || selector.length === 0) return;
complete = complete.attr('style').replace('width:', '').replace('%', '');
selector.attr('tabindex', '0').attr('role', 'progressbar').attr('aria-valuenow', complete).attr('aria-valuemin', '0').attr('aria-valuemax', '100').attr('aria-valuetext', selector.attr('title'));
selector.children().attr('aria-hidden', 'true');
},
/**
* _navigation
*
* @private
* @returns {void}
*/
_navigation: function() {
var selector = ghmob('[id="PTAIAccordion"]');
selector.attr('role', 'navigation').attr('aria-label', 'Activity Guide Menu');
selector.find('li').each(function() {
var link = ghmob(this).find('a').first();
link.removeAttr('title');
if (link.hasClass('PTAIActionItemSelected')) {
link.attr('aria-current', 'page').attr('title', 'current page');
}
if (ghmob(this).find('.PTAIActionItemRequired').length > 0) {
link.attr('title', 'Required');
}
});
},
/**
* _headings
*
* @private
* @returns {void}
*/
_headings: function() {
if (ghPage.isTargetContent() === false) return;
if (ghmob('.gh-page-header-headings h1').text().trim() === ghmob('[id="ptaiagtitle"]', ghUtils.getWinTop().document).text().trim()) {
ghmob('[id="ptaiagtitle"]', ghUtils.getWinTop().document).text('Activity Guide');
}
},
/**
* _eventBindings
*
* @private
* @returns {void}
*/
_eventBindings: function() {
ghmob(document)
.off('gh_agbuttonupdate.ghActivityGuide.buttons')
.on('gh_agbuttonupdate.ghActivityGuide.buttons', function() {
ghLog.event('gh_agbuttonupdate.ghActivityGuide.buttons');
ghActivityGuide._buttons();
});
ghmob(document)
.off('click.ghActivityGuide.taskListLink')
.on('click.ghActivityGuide.taskListLink', '.PTAI_LegendText', function() {
ghLog.event('click.ghActivityGuide.taskListLink');
var legendContent = ghmob('[id="PTAILegendDiv"]', ghUtils.getWinTop().document);
ghUtils.getWinTop().ghModal.popup('Legend', legendContent.html());
toggleDynamicLegendDisplay();
});
ghmob(window)
.off('throttledresize.ghActivityGuide.targetContentHeight ghPageReady.ghActivityGuide.targetContentHeight')
.on('throttledresize.ghActivityGuide.targetContentHeight ghPageReady.ghActivityGuide.targetContentHeight', function() {
ghLog.event('throttledresize.ghActivityGuide.targetContentHeight ghPageReady.ghActivityGuide.targetContentHeight');
ghPage._targetContentHeight();
});
ghmob(document)
.off('click.ghActivityGuide.triggerCollapsible')
.on('click.ghActivityGuide.triggerCollapsible', 'a.PTAIDependentItem, a.PTAIBlockAnchor', function() {
ghLog.event('click.ghActivityGuide.triggerCollapsible');
ghActivityGuide._targetContentHeight();
});
ghmob(document)
.off('click.ghActivityGuide.paginate')
.on('click.ghActivityGuide.paginate', '#ptaisubpage a[class*="PREVIOUS"], #ptaisubpage a[class*="NEXT"], #PTAIAccordion .PTAIActionItem', function() {
ghLog.event('click.ghActivityGuide.paginate');
ghUtils.getWinTop().ghLoader.show();
});
ghmob(document)
.off('pagelet_load.ghActivityGuide')
.on('pagelet_load.ghActivityGuide', function() {
ghLog.event('pagelet_load.ghActivityGuide');
ghActivityGuide._progressBar();
ghActivityGuide._navigation();
});
if (typeof ptalPageletArea !== 'undefined' && typeof ptalPageletArea['real_findpageletspace'] === 'undefined') {
ptalPageletArea['real_findpageletspace'] = ptalPageletArea['findpageletspace'];
ptalPageletArea['wrapped_findpageletspace'] = function() {
ptalPageletArea['real_findpageletspace']();
ghmob(document).trigger('pagelet_load');
};
ptalPageletArea['findpageletspace'] = ptalPageletArea['wrapped_findpageletspace'];
}
},
/**
* _init
*
* @private
* @returns {void}
*/
_init: function() {
ghPage._overrideIframeResizeHeight();
ghPage._targetContentHeight();
ghActivityGuide._headings();
},
/**
* run
*
* @ignore
* @returns {void}
*/
run: function() {
if ((typeof ghConfig.activityGuide !== 'undefined' && ghConfig.activityGuide.enabled === false) || ghPage.isActivityGuide() === false) return;
this._eventBindings();
this._init();
},
};
ghInit.module('ghActivityGuide');
/**
* Includes
*/
ghmob(document).on('pageinit', function() {
// Build choose file dialog
if(ghmob('[name="#ICOrigFileName"]').length && !ghmob('#gh-file-chooser').length) {
// build file chooser
var newFileChooser = ghmob('
Touch To Choose File
');
ghmob('[name="#ICOrigFileName"]').parent().prepend(newFileChooser);
// disable upload button
ghmob('input[value="Upload"]').closest('div').addClass('ui-disabled');
// add hook
ghmob('[name="#ICOrigFileName"]').change(function (){
var fileName = ghmob(this).val();
fileName = fileName.split('\\');
ghmob('#gh-file-chooser').html(fileName[fileName.length-1]);
// enable upload button
ghmob('input[value="Upload"]').closest('div').removeClass('ui-disabled');
});
ghmob('[name="#ICOrigFileName"]').hide();
}
});
ghmob(document)
.off('click.inc.attachment.fileChooser', '#gh-file-chooser')
.on('click.inc.attachment.fileChooser', '#gh-file-chooser', function() {
ghmob('[name="#ICOrigFileName"]').trigger('click');
});
/* eslint-disable */
/**
* ghPage
*/
/* client only */
function unbindPage(scope, eventName, pageName, targetPages) {
return ghUtils.alertDeprecated(ghPage.unbind(scope, eventName, pageName, targetPages), 'ghPage.unbind()');
}
/* client only */
function ghScrollY() {
return ghUtils.alertDeprecated(ghPage.setScrollY(), 'ghPage.setScrollY()');
}
/* client only */
function ghSetScrollY() {
return ghUtils.alertDeprecated(ghPage.setScrollYAttr(), 'ghPage.setScrollYAttr()');
}
/**
* ghpagemeta.js
*/
/* client only */
function getComponentName() {
return ghUtils.alertDeprecated(ghPage.getComponentName(), 'ghPage.getComponentName()');
}
/* client only */
function getPageName() {
return ghUtils.alertDeprecated(ghPage.getName(), 'ghPage.getName()');
}
/* VC1965 */
function setPageName(name) {
return ghUtils.alertDeprecated(ghPage.setName(name), 'ghPage.setName()');
}
/* client only */
function setPagePT852() {
return ghUtils.alertDeprecated(ghPage.setNamePT852(), 'ghPage.setNamePT852()');
}
function includeGSData() {
return ghUtils.alertDeprecated(ghPage.includeGSData(), 'ghPage.includeGSData()');
}
/**
* ghUtils
*/
/* client only */
function make_collapsible(group_box_id, header_text, theme) {
return ghUtils.alertDeprecated(ghContainer.createCollapsible(group_box_id, header_text, theme), 'ghContainer.createCollapsible()');
}
/* client only */
function make_collapsible_external_header(group_box_id, header_id, theme) {
return ghUtils.alertDeprecated(ghContainer.createCollapsible(group_box_id, header_id, theme), 'ghContainer.createCollapsible()');
}
/* client only */
function make_container(selector, header_text) {
return ghUtils.alertDeprecated(ghContainer.create(selector, header_text), 'ghContainer.create()');
}
/* client only */
function make_container_from_collapsible(selector) {
return ghUtils.alertDeprecated(ghContainer.createFromCollapsible(selector), 'ghContainer.createFromCollapsible()');
}
/* client only */
function removeEmptyElements(elem){
return ghUtils.alertDeprecated(ghUtils.removeEmpty(elem), 'ghUtils.removeEmpty()');
}
/* client only */
function replacePSIcon(oldimage, newicon){
return ghUtils.alertDeprecated(ghIcons.replaceIcon(oldimage, newicon, ''), 'ghIcons.replaceIcon()');
}
/* client only */
ghUtils.replacePSIcon = function(oldimage, newicon) {
return ghUtils.alertDeprecated(ghIcons.replaceIcon(oldimage, newicon, ''), 'ghIcons.replaceIcon()');
}
/* client only */
ghUtils.replaceIcon = function(oldimage, newicon) {
return ghUtils.alertDeprecated(ghIcons.replaceIcon(oldimage, 'fa ' + newicon, ''), 'ghIcons.replaceIcon()');
}
/* VC1966 */
function keepTogether(divs) {
return ghUtils.alertDeprecated(ghUtils.keepTogether(divs), 'ghUtils.keepTogether()');
}
/* VC1967 */
function moveField(moveFieldSelector, targetFieldSelector, moveBefore) {
return ghUtils.alertDeprecated(ghUtils.moveField(moveFieldSelector, targetFieldSelector, moveBefore, 'td'), 'ghUtils.moveField()');
}
/* VC1967 */
function moveFieldAfter(moveFieldSelector, targetFieldSelector) {
return ghUtils.alertDeprecated(ghUtils.moveFieldAfter(moveFieldSelector, targetFieldSelector, false), 'ghUtils.moveFieldAfter()');
}
/* VC1967 */
function moveFieldBefore(moveFieldSelector, targetFieldSelector) {
return ghUtils.alertDeprecated(ghUtils.moveFieldBefore(moveFieldSelector, targetFieldSelector, true), 'ghUtils.moveFieldBefore()');
}
/* client only */
function pageField(pageName, pageFieldId) {
return ghUtils.alertDeprecated(ghPage.getField(pageName, pageFieldId), 'ghPage.getField()');
}
function pageFieldText(ctx, pageName, pageFieldId) {
return ghUtils.alertDeprecated(ghPage.getFieldText(ctx, pageName, pageFieldId), 'ghPage.getFieldText()');
}
ghUtils.makeCollapsible = function(elem, title, theme, collapsed) {
return ghUtils.alertDeprecated(ghContainer.createCollapsible(elem, title, theme, collapsed), 'ghContainer.createCollapsible()');
}
ghUtils.makeContainer = function(selector, header_text) {
return ghUtils.alertDeprecated(ghContainer.create(selector, header_text), 'ghContainer.create()');
}
ghUtils.makeContainerFromCollapsible = function(selector) {
return ghUtils.alertDeprecated(ghContainer.createFromCollapsible(selector), 'ghContainer.createFromCollapsible()');
}
ghUtils.makeContainerInit = function() {
return ghUtils.alertDeprecated(ghContainer.initializeContainers(), 'ghContainer.initializeContainers()');
}
ghUtils.hideEmpty = function(elem) {
return ghUtils.alertDeprecated(ghUtils.removeEmpty(elem, true), 'ghUtils.removeEmpty(elem, true)');
}
function hideKeyboard() {
return ghUtils.alertDeprecated(ghUtils.hideDeviceKeyboard(), 'ghUtils.hideDeviceKeyboard()');
}
function removeWhiteSpace() {
return ghUtils.alertDeprecated(ghUtils.removeEmpty('div'), 'ghUtils.removeEmpty(elem)');
}
/**
* ghContainer
*/
function getOpenSections() {
return ghUtils.alertDeprecated(ghContainer.getOpenCollapsibles(), 'ghContainer.getOpenCollapsibles()');
}
function expandRequiredCollapsibles(scope) {
return ghUtils.alertDeprecated(ghContainer.expandRequiredCollapsibles(scope), 'ghContainer.expandRequiredCollapsibles()');
}
function moveContentIntoCollapsible(pageName, fieldId, contentId) {
return ghUtils.alertDeprecated(ghContainer.moveContentIntoCollapsible(pageName, fieldId, contentId), 'ghContainer.moveContentIntoCollapsible()');
}
/**
* ghFooter
*/
function appendFooterBtn(item) {
return ghUtils.alertDeprecated(ghFooter.addItem(item), 'ghFooter.addItem()');
}
function footerAfterCreate() {
console.warn('footerAfterCreate() is no longer required to run. Please remove the reference');
console.trace();
return;
}
ghFooter.appendFooterBtn = function(item, icon) {
return ghUtils.alertDeprecated(ghFooter.addItem(item, icon), 'ghFooter.addItem()');
}
ghFooter.createFooter = function() {
return ghUtils.alertDeprecated(ghFooter.create(), 'ghFooter.create()');
}
ghFooter.footerAfterCreate = function() {
console.warn('ghFooter.footerAfterCreate() is no longer required to run. Please remove the reference');
console.trace();
return;
}
/**
* ghTilesNavigation
*/
function createTileFromButton(item, args) {
return ghUtils.alertDeprecated(ghTilesNavigation.createTileFromButton(item, args), 'ghTilesNavigation.createTileFromButton()');
}
function createTileFromLink(args) {
return ghUtils.alertDeprecated(ghTilesNavigation.createTileFromLink(args), 'ghTilesNavigation.createTileFromLink()');
}
function createTileFromContainer(item, args) {
return ghUtils.alertDeprecated(ghTilesNavigation.createTileFromContainer(item, args), 'ghTilesNavigation.createTileFromContainer()');
}
/**
* ghSubmenu
*/
function tabsToSubmenu(selector, action) {
return ghUtils.alertDeprecated(ghSubmenu.pageTabs(selector), 'ghSubmenu.pageTabs()');
}
function psTabsToSubmenu(selector) {
return ghUtils.alertDeprecated(ghSubmenu.tableTabs(selector), 'ghSubmenu.tableTabs()');
}
function makeSubmenu(i, action, type) {
return ghUtils.alertDeprecated(ghSubmenu.create(i, type), 'ghSubmenu.create()');
}
/**
* ghTable
*/
function cleanReflowTablesInit() {
return ghUtils.alertDeprecated(ghTable.cleanInit(), 'ghTable.cleanInit()');
}
ghTable.cleanReflowInit = function() {
return ghUtils.alertDeprecated(ghTable.cleanInit(), 'ghTable.cleanInit()');
}
function cleanReflowTables(selector) {
return ghUtils.alertDeprecated(ghTable.cleanReflow(selector), 'ghTable.cleanReflow()');
}
function fixScrollGrids(selector, makeCollapsible) {
return ghUtils.alertDeprecated(ghTable.cleanScroll(selector, makeCollapsible), 'ghTable.cleanScroll()');
}
function ghGridPagerInit() {
return ghUtils.alertDeprecated(ghTable.pagerInit(), 'ghTable.pagerInit()');
}
function ghGridPager(grid, pager, showMore) {
return ghUtils.alertDeprecated(ghTable.pagerCreate(grid, pager), 'ghTable.pagerCreate()');
}
function ghApplyTablesaw(grid) {
return ghUtils.alertDeprecated(ghTable.tablesaw(grid), 'ghTable.tablesaw()');
}
function ghSelectAllGridToggle() {
return ghUtils.alertDeprecated(ghTable.selectAll(), 'ghTable.selectAll()');
}
function removeColumnHeader(table_selector, pos) {
return ghUtils.alertDeprecated(ghTable.removeColumnHeader(table_selector, pos), 'ghTable.removeColumnHeader()');
}
function hideGridColumn(pageName, pageFieldID) {
return ghUtils.alertDeprecated(ghTable.hideGridColumn(pageName, pageFieldID), 'ghTable.hideGridColumn()');
}
/**
* ghInterface
*/
function ghRadiosToTabs(selector) {
return ghUtils.alertDeprecated(ghInterface.radiosToTabs(selector), 'ghInterface.radiosToTabs()');
}
function scrapeDefinedSizes() {
return ghUtils.alertDeprecated(ghInterface.scrapeDefinedSizes(), 'ghInterface.scrapeDefinedSizes()');
}
ghInterface.nativeDateTime = function() {
return ghUtils.alertDeprecated(ghForm.nativeDateTime(), 'ghForm.nativeDateTime()');
}
ghInterface.pageletLinksToListview = function() {
console.warn('ghInterface.pageletLinksToListview() is no longer required to run. Please remove the reference');
console.trace();
return;
}
/**
* ghHeader
*/
function ghPageHeaderLinkInit() {
return ghUtils.alertDeprecated(ghHeader.pageHeaderLinks(), 'ghHeader.pageHeaderLinks()');
}
function ghPageHeaderLink(selector, link) {
return ghUtils.alertDeprecated(ghHeader.appendHeaderLink(selector, link), 'ghHeader.appendHeaderLink(selector, link)');
}
function ghPageHeader(selectors, append) {
return ghUtils.alertDeprecated(ghHeader.pageHeader(selectors, append), 'ghHeader.pageHeader(selectors, append)');
}
function makePageHeader(headings) {
return ghUtils.alertDeprecated(ghHeader.pageHeaderWrapper(headings), 'ghHeader.pageHeaderWrapper(headings)');
}
function makePageHeaderHeadings(ghPageHeaders, append) {
return ghUtils.alertDeprecated(ghHeader.addHeadings(ghPageHeaders, false), 'ghHeader.addHeadings(ghPageHeaders, append)');
}
function makePageHeaderLinks() {
return ghUtils.alertDeprecated(ghHeader.createLinkWrapper(), 'ghHeader.createLinkWrapper()');
}
function formatFixedHeader() {
return ghUtils.alertDeprecated(ghHeader.siteHeader(), 'ghHeader.siteHeader()');
}
function ghUsername() {
return ghUtils.alertDeprecated(ghHeader.formatUsername(), 'ghHeader.formatUsername()');
}
/**
* ghModal
*/
function popup_window_open(url, windowName) {
return ghUtils.alertDeprecated(ghModal.newWindowPopup(url, windowName), 'ghModal.newWindowPopup()');
}
function enhanceSearchDialog() {
return ghUtils.alertDeprecated(ghModal.enhanceSearchDialog(), 'ghModal.enhanceSearchDialog()');
}
function wrapped_enhanceSearchDialog() {
return ghUtils.alertDeprecated(ghModal.enhanceSearchDialog(), 'ghModal.enhanceSearchDialog()');
}
ghModal._processSelectMenus = function() {
return ghUtils.alertDeprecated(ghForm._processSelectMenus(), 'ghForm._processSelectMenus()');
}
/**
* ghForm
*/
function markRequired(scope) {
return ghUtils.alertDeprecated(ghForm._markRequired(scope), 'ghForm._markRequired()');
}
function unenteredRequired(scope) {
return ghUtils.alertDeprecated(ghForm._unenteredRequired(scope), 'ghForm._unenteredRequired()');
}
function processErrors() {
return ghUtils.alertDeprecated(ghForm._processErrors(), 'ghForm._processErrors()');
}
/**
* ghTrigger
*/
window.ghTrigger = {
on: function(eventType, target, event) {
return ghUtils.alertDeprecated(ghmob(document).on(eventType, target, event), 'ghmob(document).on()');
},
};
ghLoader.show();
ghmob(document).trigger('pagebeforecreate');
ghUtils.delay(function pageinit() {
ghmob(document).trigger('pageinit');
});