Blame view
app/partials/fuelManager/fuelManager.controller.js
7.01 KB
feacde5ff
|
1 2 3 4 5 6 7 8 9 |
'use strict'; //Load controller angular.module('acufuel') .controller('fuelManagerController', ['$scope',function($scope) { $scope.test = "Testing..."; |
4b64fa3a3
![]() |
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 |
$(document).ready(function(){ $('#customTabToggle1').click(function(){ console.log('tab 1'); $('#customTabsBody1').slideDown(); $('#customTabsBody2').slideUp(); $('#customTabsBody3').slideUp(); $('#customTabsBody4').slideUp(); $('#customTabs1').addClass('customActive'); $('#customTabs2').removeClass('customActive'); $('#customTabs3').removeClass('customActive'); $('#customTabs4').removeClass('customActive'); $('.customAccordianHeader > select, .customAccordianHeader > input').prop("disabled", true); $('.customAccordianHeader.customActive > select, .customAccordianHeader.customActive > input').prop("disabled", false); $('#customTabs1 > .pull-right > .btn-default').css('display', 'none'); $('#customTabs1 > .pull-right > .btn-success').css('display', 'inline-block'); $('#customTabs1 > .pull-right > .btn-danger').css('display', 'inline-block'); $('#customTabs2 > .pull-right > .btn-default').css('display', 'inline-block'); $('#customTabs2 > .pull-right > .btn-success').css('display', 'none'); $('#customTabs2 > .pull-right > .btn-danger').css('display', 'none'); $('#customTabs3 > .pull-right > .btn-default').css('display', 'inline-block'); $('#customTabs3 > .pull-right > .btn-success').css('display', 'none'); $('#customTabs3 > .pull-right > .btn-danger').css('display', 'none'); $('#customTabs4 > .pull-right > .btn-default').css('display', 'inline-block'); $('#customTabs4 > .pull-right > .btn-success').css('display', 'none'); $('#customTabs4 > .pull-right > .btn-danger').css('display', 'none'); }) $('#customTabToggle2').click(function(){ console.log('tab 2'); $('#customTabsBody1').slideUp(); $('#customTabsBody2').slideDown(); $('#customTabsBody3').slideUp(); $('#customTabsBody4').slideUp(); $('#customTabs1').removeClass('customActive'); $('#customTabs2').addClass('customActive'); $('#customTabs3').removeClass('customActive'); $('#customTabs4').removeClass('customActive'); $('.customAccordianHeader > select, .customAccordianHeader > input').prop("disabled", true); $('.customAccordianHeader.customActive > select, .customAccordianHeader.customActive > input').prop("disabled", false); $('#customTabs1 > .pull-right > .btn-default').css('display', 'inline-block'); $('#customTabs1 > .pull-right > .btn-success').css('display', 'none'); $('#customTabs1 > .pull-right > .btn-danger').css('display', 'none'); $('#customTabs2 > .pull-right > .btn-default').css('display', 'none'); $('#customTabs2 > .pull-right > .btn-success').css('display', 'inline-block'); $('#customTabs2 > .pull-right > .btn-danger').css('display', 'inline-block'); $('#customTabs3 > .pull-right > .btn-default').css('display', 'inline-block'); $('#customTabs3 > .pull-right > .btn-success').css('display', 'none'); $('#customTabs3 > .pull-right > .btn-danger').css('display', 'none'); $('#customTabs4 > .pull-right > .btn-default').css('display', 'inline-block'); $('#customTabs4 > .pull-right > .btn-success').css('display', 'none'); $('#customTabs4 > .pull-right > .btn-danger').css('display', 'none'); }) $('#customTabToggle3').click(function(){ console.log('tab 3'); $('#customTabsBody1').slideUp(); $('#customTabsBody2').slideUp(); $('#customTabsBody3').slideDown(); $('#customTabsBody4').slideUp(); $('#customTabs1').removeClass('customActive'); $('#customTabs2').removeClass('customActive'); $('#customTabs3').addClass('customActive'); $('#customTabs4').removeClass('customActive'); $('.customAccordianHeader > select, .customAccordianHeader > input').prop("disabled", true); $('.customAccordianHeader.customActive > select, .customAccordianHeader.customActive > input').prop("disabled", false); $('#customTabs1 > .pull-right > .btn-default').css('display', 'inline-block'); $('#customTabs1 > .pull-right > .btn-success').css('display', 'none'); $('#customTabs1 > .pull-right > .btn-danger').css('display', 'none'); $('#customTabs2 > .pull-right > .btn-default').css('display', 'inline-block'); $('#customTabs2 > .pull-right > .btn-success').css('display', 'none'); $('#customTabs2 > .pull-right > .btn-danger').css('display', 'none'); $('#customTabs3 > .pull-right > .btn-default').css('display', 'none'); $('#customTabs3 > .pull-right > .btn-success').css('display', 'inline-block'); $('#customTabs3 > .pull-right > .btn-danger').css('display', 'inline-block'); $('#customTabs4 > .pull-right > .btn-default').css('display', 'inline-block'); $('#customTabs4 > .pull-right > .btn-success').css('display', 'none'); $('#customTabs4 > .pull-right > .btn-danger').css('display', 'none'); }) $('#customTabToggle4').click(function(){ console.log('tab 4'); $('#customTabsBody1').slideUp(); $('#customTabsBody2').slideUp(); $('#customTabsBody3').slideUp(); $('#customTabsBody4').slideDown(); $('#customTabs1').removeClass('customActive'); $('#customTabs2').removeClass('customActive'); $('#customTabs3').removeClass('customActive'); $('#customTabs4').addClass('customActive'); $('.customAccordianHeader > select, .customAccordianHeader > input').prop("disabled", true); $('.customAccordianHeader.customActive > select, .customAccordianHeader.customActive > input').prop("disabled", false); $('#customTabs1 > .pull-right > .btn-default').css('display', 'inline-block'); $('#customTabs1 > .pull-right > .btn-success').css('display', 'none'); $('#customTabs1 > .pull-right > .btn-danger').css('display', 'none'); $('#customTabs2 > .pull-right > .btn-default').css('display', 'inline-block'); $('#customTabs2 > .pull-right > .btn-success').css('display', 'none'); $('#customTabs2 > .pull-right > .btn-danger').css('display', 'none'); $('#customTabs3 > .pull-right > .btn-default').css('display', 'inline-block'); $('#customTabs3 > .pull-right > .btn-success').css('display', 'none'); $('#customTabs3 > .pull-right > .btn-danger').css('display', 'none'); $('#customTabs4 > .pull-right > .btn-default').css('display', 'none'); $('#customTabs4 > .pull-right > .btn-success').css('display', 'inline-block'); $('#customTabs4 > .pull-right > .btn-danger').css('display', 'inline-block'); }) }) }]); |