detach listeners and remove element data
parent
b11a84217b
commit
dcdccd683d
|
@ -48,6 +48,11 @@ $(document).ready(function() {
|
||||||
|
|
||||||
sensor_status(sensors_detected = 0); // reset active sensor indicators
|
sensor_status(sensors_detected = 0); // reset active sensor indicators
|
||||||
$('#tabs > ul li').removeClass('active'); // de-select any selected tabs
|
$('#tabs > ul li').removeClass('active'); // de-select any selected tabs
|
||||||
|
|
||||||
|
// detach listeners and remove element data
|
||||||
|
$('#content').empty();
|
||||||
|
|
||||||
|
// load default html
|
||||||
tab_initialize_default();
|
tab_initialize_default();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
3
main.js
3
main.js
|
@ -69,6 +69,9 @@ $(document).ready(function() {
|
||||||
// Highlight selected tab
|
// Highlight selected tab
|
||||||
$(self).parent().addClass('active');
|
$(self).parent().addClass('active');
|
||||||
|
|
||||||
|
// detach listeners and remove element data
|
||||||
|
$('#content').empty();
|
||||||
|
|
||||||
switch (tab) {
|
switch (tab) {
|
||||||
case 'tab_initial_setup':
|
case 'tab_initial_setup':
|
||||||
tab_initialize_initial_setup();
|
tab_initialize_initial_setup();
|
||||||
|
|
Loading…
Reference in New Issue