Skip to content

Commit

Permalink
2.1.2: bump bootstrap from 4.5.0 to 4.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
acaldero committed Aug 10, 2020
2 parents a6be1a8 + a504e45 commit d52abdf
Show file tree
Hide file tree
Showing 7 changed files with 141 additions and 68 deletions.
2 changes: 2 additions & 0 deletions sim_core/sim_cfg.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,8 @@
"DBG_limitins": { upgrade:false, type:"int", value:10000 },
"DBG_limitick": { upgrade:false, type:"int", value:1000 },
"ICON_theme": { upgrade:false, type:"string", value:'classic' },
"AS_enable": { upgrade:true, type:"boolean", value:true },
"AS_delay": { upgrade:true, type:"int", value:500 },

/* simulation screen: Notification, etc. */
"NOTIF_delay": { upgrade:false, type:"int", value:1000 },
Expand Down
29 changes: 29 additions & 0 deletions wepsim_core/wepsim_config_commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -591,3 +591,32 @@
description: "<span data-langkey='Beginner view'>Beginner view</span>"
});

ws_config.push({
id: "radio16",
type: "Accesibility",
u_class: "",
code_cfg: "<div class='btn-group btn-group-toggle d-flex' data-toggle='buttons' >" +
" <label id='radio16-true'" +
" class='btn btn-sm btn-light w-50 btn-outline-secondary p-1' " +
" aria-label='AutoScrolling: true' " +
" onclick=\"var optValue = true;" +
" update_cfg('AS_enable', optValue);" +
" return false;\">" +
" <input type='radio' name='options' id='radio16-true' aria-label='AutoScroll: true' autocomplete='off' >On" +
" </label>" +
" <label id='radio16-false'" +
" class='btn btn-sm btn-light w-50 btn-outline-secondary p-1' " +
" aria-label='AutoScrolling: false' " +
" onclick=\"var optValue = false;" +
" update_cfg('AS_enable', optValue);" +
" return false;\">" +
" <input type='radio' name='options' id='radio16-false' aria-label='AutoScroll: false' autocomplete='off' >Off" +
" </label>" +
" </div>",
code_init: function() {
var optValue = get_cfg('AS_enable') ;
$('#radio16-' + optValue).button('toggle') ;
},
description: "<span data-langkey='AutoScroll'>AutoScroll</span>"
});

Loading

0 comments on commit d52abdf

Please sign in to comment.