This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| "use strict"; | |
| var DataTables = (function(pub) { | |
| //Private variables | |
| //Public functions | |
| pub.Entity = function () { | |
| //Destroy table if exists |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //select2 | |
| destroySelect2: function(element) { | |
| $(element).empty(); | |
| $(element).select2('destroy'); | |
| }, | |
| initializeSelect2: function (element, options) { | |
| var defaultOptions = { | |
| placeholder: 'Select', | |
| allowClear: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Resizes the Org Chart window for Chrome or Internet Explorer | |
| function resizeOrgChartWindow() { | |
| //For Chrome | |
| if (window.orgChartWindow.contentDocument) { | |
| //Now that the orgchart is in an iFrame, scrollHeight was chaged to offsetHeight. -Andrew | |
| window.orgChartWindow.style.height = window.orgChartWindow.contentDocument.body.offsetHeight + 30 + 'px'; | |
| } | |
| //For Internet Explorer | |
| else if (window.orgChartWindow.document) { | |
| $("#orgChartWindow").css("height", window.orgChartWindow.document.body.offsetHeight + 30 + 'px'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Horizontal Scrolling for the Org Chart | |
| function horzontalScrolling() { | |
| $(".scroll-btn-left").hide(); | |
| if ($.browser.chrome) { | |
| var orgChartTarget = "body" | |
| } else { | |
| var orgChartTarget = "html" | |
| } |