Skip to content
This repository has been archived by the owner on Jul 6, 2022. It is now read-only.

Commit

Permalink
Fixed salesagility#3217 - Security Group Subpanel
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Samson committed Mar 6, 2017
1 parent fc48f0c commit f406b36
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 109 deletions.
4 changes: 2 additions & 2 deletions themes/SuiteP/css/panels.scss
Expand Up @@ -390,7 +390,7 @@ div.sub-panel {


.subpanelTabForm {
background-color: $default-btn-color;
background-color: $main-bg;
color: #000000;
border-color: #F08377;
}
Expand Down Expand Up @@ -497,7 +497,7 @@ div.sub-panel {
}

.subpanelTabForm td {
padding: 15px;
padding: 15px 0;
}

table.subpanelTabForm td {
Expand Down
107 changes: 0 additions & 107 deletions themes/SuiteP/js/style.js
Expand Up @@ -425,113 +425,6 @@ var refreshListViewCheckbox = function (e) {
};

$(function () {
if (isUserProfilePage()) {

var tabActiveSelector;
var tabFramesLength;
var tabFrames;

if (isEditViewPage()) {
tabActiveSelector = '#EditView_tabs.yui-navset.yui-navset-top ul.yui-nav li.selected a';
tabFramesLength = 5;
tabFrames = {
// User Profile
'tab1': [
// User Profile & Employee Information
'form#EditView div#EditView_tabs.yui-navset.yui-navset-top div.yui-content div div#EditView_tabs',
// Email Settings
'#email_options'
],
// Password
'tab2': [
// Password
'#generate_password'
],
// Themes
'tab3': [
// Themes
'#themepicker'
],
// Advanced
'tab4': [
// User Settings
'#settings',
// Layout Options
'#layout',
// Locale Settings
'#locale',
// Calendar Options
'#calendar_options'
],
// External Account
'tab5': [
'#eapm_area'
]
};

}
if (isDetailViewPage()) {
tabActiveSelector = '#user_detailview_tabs.yui-navset.detailview_tabs.yui-navset-top ul.yui-nav li.selected a';
tabFramesLength = 3;
tabFrames = {
// User Profile
'tab1': [
// User Profile & Employee Information
'div#user_detailview_tabs.yui-navset.detailview_tabs.yui-navset-top div.yui-content',
// Email Settings
'#email_options',
// Security Groups Management etc..
'#subpanel_list'
],
// Advanced
'tab2': [
// User Settings
'#settings',
// Locale Settings
'#locale',
// Calendar Options
'#calendar_options',
// Layout Options
'#edit_tabs',
// Security Groups Management etc..
'#subpanel_list'
],
// Access
'tab3': [
// Security Groups Management etc..
'#subpanel_list'
]
};
}

var tabsRefresh = function () {
// hide all tabs..
for (var i = 1; i <= tabFramesLength; i++) {
for (var j = 0; j < tabFrames['tab' + i].length; j++) {
$(tabFrames['tab' + i][j]).hide();
}
}

// show the active only
var activeTab = $(tabActiveSelector).first().attr('id');
for (i = 0; i < tabFrames[activeTab].length; i++) {
$(tabFrames[activeTab][i]).show();
}
}

for (var i = 1; i <= tabFramesLength; i++) {
$('#tab' + i + ', input[type="button"]').click(function () {
setTimeout(function () {
tabsRefresh();
}, 300);
});
}
setTimeout(function () {
tabsRefresh();
}, 300);

}

// Fix for footer position
if ($('#bootstrap-container footer').length > 0) {
var clazz = $('#bootstrap-container footer').attr('class');
Expand Down

0 comments on commit f406b36

Please sign in to comment.