Skip to content

Commit 1574253

Browse files
committed
more obvious disabling for mcmc options
1 parent f61314e commit 1574253

3 files changed

Lines changed: 16 additions & 4 deletions

File tree

inst/shiny/ui.R

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -936,12 +936,13 @@ actionLink('plotright', icon=icon('arrow-right', class='fa-2x'), label=NULL)
936936
fluidRow(class = "shiftright",
937937
column(3, style = "padding-left: 0;",
938938
inlineSelectInput('controltype',label = NULL,
939-
choices = c("MCMC","MCMLE"),
939+
choices = c("MCMC"),
940940
style="margin:10px 0px;")),
941941
column(5,
942942
checkboxInput('controldefault', 'Use default options', value = TRUE))
943943
),
944-
conditionalPanel(condition = "input.controltype == 'MCMC'", class = "shiftright",
944+
conditionalPanel(condition = "input.controltype == 'MCMC'",
945+
class = "shiftright gray", id = "mcmcopt1",
945946
fluidRow(
946947
column(4,
947948
span("Interval:"),
@@ -1184,7 +1185,8 @@ tabPanel(title='Simulations', value='tab7',
11841185
column(7,
11851186
checkboxInput('simcontroldefault','Use default options', value=TRUE))
11861187
),
1187-
conditionalPanel(condition="input.simcontroltype == 'MCMC'", class="shiftright",
1188+
conditionalPanel(condition="input.simcontroltype == 'MCMC'",
1189+
class="shiftright gray", id = "mcmcopt2",
11881190
fluidRow(
11891191
column(5,
11901192
span("Interval:"),

inst/shiny/www/alert.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,13 @@ $(document).ready(function(){
221221
$("#mcmchelpbox").toggle(500);
222222
});
223223

224+
$("#controldefault").click(function(){
225+
$("#mcmcopt1").toggleClass("gray");
226+
})
227+
$("#simcontroldefault").click(function(){
228+
$("#mcmcopt2").toggleClass("gray");
229+
})
230+
224231
});
225232

226233

inst/shiny/www/style.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,13 +441,16 @@ div.placeholder {
441441
background-color: #054D88;
442442
border-color: #02213A;
443443
}
444+
.gray {
445+
opacity: .5;
446+
}
444447
.form-control[disabled],
445448
.form-control[readonly],
446449
fieldset[disabled] .form-control,
447450
input[disabled] {
448451
cursor: not-allowed;
449452
background-color: #e6e6e6;
450-
opacity: 1;
453+
opacity: .5;
451454
}
452455
.navbar-default {
453456
background-color: #3A3A3A;

0 commit comments

Comments
 (0)