Skip to content

Commit eb1ce44

Browse files
author
mreishman
committed
more changes, most functions working need to add buttons
1 parent e1979cc commit eb1ce44

File tree

4 files changed

+23
-15
lines changed

4 files changed

+23
-15
lines changed

core/js/main.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1406,9 +1406,9 @@ function singleDecreaseView(idOfBlock)
14061406
{
14071407
$('#innerFirstDevBox'+idOfBlock+' .devBoxContentSecondaryExpanded').addClass('devBoxContentSecondary');
14081408
$('#innerFirstDevBox'+idOfBlock+' .devBoxContentSecondaryExpanded').removeClass('devBoxContentSecondaryExpanded');
1409-
document.getElementById(idOfBlock+"UpArrow").style.display = "none";
1409+
$("#"+idOfBlock+"UpArrow").addClass("disabledArrow");
14101410
}
1411-
document.getElementById(idOfBlock+"DownArrow").style.display = "inline-block";
1411+
$("#"+idOfBlock+"DownArrow").removeClass("disabledArrow");
14121412
}
14131413
}
14141414

@@ -1420,14 +1420,14 @@ function singleIncreaseView(idOfBlock)
14201420
{
14211421
$('#innerFirstDevBox'+idOfBlock+' .devBoxContentTertiary').addClass('devBoxContentTertiaryExpanded');
14221422
$('#innerFirstDevBox'+idOfBlock+' .devBoxContentTertiary').removeClass('devBoxContentTertiary');
1423-
document.getElementById(idOfBlock+"DownArrow").style.display = "none";
1423+
$("#"+idOfBlock+"DownArrow").addClass("disabledArrow");
14241424
}
14251425
else
14261426
{
14271427
$('#innerFirstDevBox'+idOfBlock+' .devBoxContentSecondary').addClass('devBoxContentSecondaryExpanded');
14281428
$('#innerFirstDevBox'+idOfBlock+' .devBoxContentSecondary').removeClass('devBoxContentSecondary');
14291429
}
1430-
document.getElementById(idOfBlock+"UpArrow").style.display = "inline-block";
1430+
$("#"+idOfBlock+"UpArrow").removeClass("disabledArrow");
14311431
}
14321432
}
14331433

@@ -1450,8 +1450,8 @@ function switchToMinimizedView()
14501450
$('.devBoxContentTertiaryExpanded').addClass('devBoxContentTertiary');
14511451
$('.devBoxContentTertiaryExpanded').removeClass('devBoxContentTertiaryExpanded');
14521452

1453-
$(".downArrow").css("display","inline-block");
1454-
$(".upArrow").css("display","none");
1453+
$(".downArrow").removeClass("disabledArrow");
1454+
$(".upArrow").addClass("disabledArrow");
14551455
}
14561456
}
14571457

@@ -1474,8 +1474,8 @@ function switchToStandardView()
14741474
$('.devBoxContentTertiaryExpanded').addClass('devBoxContentTertiary');
14751475
$('.devBoxContentTertiaryExpanded').removeClass('devBoxContentTertiaryExpanded');
14761476

1477-
$(".downArrow").css("display","inline-block");
1478-
$(".upArrow").css("display","inline-block");
1477+
$(".downArrow").removeClass("disabledArrow");
1478+
$(".upArrow").removeClass("disabledArrow");
14791479
}
14801480
}
14811481

@@ -1498,8 +1498,8 @@ function switchToExpandedView()
14981498
$('.devBoxContentTertiary').addClass('devBoxContentTertiaryExpanded');
14991499
$('.devBoxContentTertiary').removeClass('devBoxContentTertiary');
15001500

1501-
$(".downArrow").css("display","none");
1502-
$(".upArrow").css("display","inline-block");
1501+
$(".downArrow").addClass("disabledArrow");
1502+
$(".upArrow").removeClass("disabledArrow");
15031503
}
15041504
}
15051505

core/php/functions/indexFunctions.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,22 +117,22 @@ function generateWindow($data = array(), $pollType)
117117

118118
if($branchView === "Minimized")
119119
{
120-
$upArrow = "display: none;";
120+
$upArrow = "disabledArrow";
121121
$downArrow = "";
122122
$branchViewClass = "devBoxContentSecondary";
123123
$branchViewClassTwo = "devBoxContentTertiary";
124124
}
125125
elseif($branchView === "Standard")
126126
{
127-
$upArrow = "display: none;";
127+
$upArrow = "";
128128
$downArrow = "";
129129
$branchViewClass = "devBoxContentSecondaryExpanded";
130130
$branchViewClassTwo = "devBoxContentTertiary";
131131
}
132132
elseif($branchView === "Expanded")
133133
{
134134
$upArrow = "";
135-
$downArrow = "display: none;";
135+
$downArrow = "disabledArrow";
136136
$branchViewClass = "devBoxContentSecondaryExpanded";
137137
$branchViewClassTwo = "devBoxContentTertiaryExpanded";
138138
}
@@ -165,8 +165,8 @@ function generateWindow($data = array(), $pollType)
165165
$blockHTML .= " <img onclick=\"togglePinStatus('".$keyNoSpace."');\" id=\"".$keyNoSpace."Pin\" style=\"cursor: pointer; height: 18px;\" src=\"core/img/pin.png\">";
166166
$blockHTML .= " <img onclick=\"togglePinStatus('".$keyNoSpace."');\" id=\"".$keyNoSpace."PinPinned\" style=\"cursor: pointer; height: 18px; display: none;\" src=\"core/img/pinPinned.png\">";
167167
$blockHTML .= " <img onclick=\"toggleDetailBar(event, '".$keyNoSpace."');\" style=\"cursor: pointer; height: 18px;\" src=\"core/img/externalLink.png\">";
168-
$blockHTML .= " <img class=\"downArrow\" onclick=\"singleIncreaseView('".$keyNoSpace."');\" id=\"".$keyNoSpace."DownArrow\" style=\"cursor: pointer; height: 18px; ".$downArrow." \" src=\"core/img/downarrow.png\">";
169-
$blockHTML .= " <img class=\"upArrow\" onclick=\"singleDecreaseView('".$keyNoSpace."');\" id=\"".$keyNoSpace."UpArrow\" style=\"cursor: pointer; height: 18px; ".$upArrow." \" src=\"core/img/uparrow.png\">";
168+
$blockHTML .= " <img class=\"downArrow ".$downArrow."\" onclick=\"singleIncreaseView('".$keyNoSpace."');\" id=\"".$keyNoSpace."DownArrow\" style=\"cursor: pointer; height: 18px;\" src=\"core/img/downarrow.png\">";
169+
$blockHTML .= " <img class=\"upArrow ".$upArrow." \" onclick=\"singleDecreaseView('".$keyNoSpace."');\" id=\"".$keyNoSpace."UpArrow\" style=\"cursor: pointer; height: 18px;\" src=\"core/img/uparrow.png\">";
170170
$blockHTML .= " <div class=\"expandMenu\" onclick=\"dropdownShow('".$keyNoSpace."')\" ></div>";
171171
$blockHTML .= " <a style=\"cursor: pointer;\" onclick=\"refreshAction('".$keyNoSpace."','inner');\" ><img style=\"height: 18px;\" src=\"core/img/Refresh2.png\"></a>";
172172
$blockHTML .= " <div id=\"dropdown-".$keyNoSpace."\" class=\"dropdown-content\">";

core/template/theme.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,10 @@ input {
246246
.devBoxContentTertiaryExpanded{
247247
display: block;
248248
}
249+
.disabledArrow{
250+
filter: opacity(25%);
251+
cursor: default !important;
252+
}
249253
#sidebar{
250254
background-color: #777777;
251255
width: 0;

local/default/template/theme.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,10 @@ input {
246246
.devBoxContentTertiaryExpanded{
247247
display: block;
248248
}
249+
.disabledArrow{
250+
filter: opacity(25%);
251+
cursor: default !important;
252+
}
249253
#sidebar{
250254
background-color: #777777;
251255
width: 0;

0 commit comments

Comments
 (0)