SVN merge r763.
This commit is contained in:
parent
1a8d59d9cf
commit
a7f19281ff
Notes:
subgit
2018-03-07 17:59:06 +01:00
r764 www/branches/life
14
www/misc.js
14
www/misc.js
@ -131,6 +131,11 @@ var config = {
|
|||||||
},
|
},
|
||||||
networkBlacklist: ['NL', 'X5'],
|
networkBlacklist: ['NL', 'X5'],
|
||||||
},
|
},
|
||||||
|
tab: {
|
||||||
|
active: 0,
|
||||||
|
disabled: [2],
|
||||||
|
max: 4,
|
||||||
|
},
|
||||||
};
|
};
|
||||||
var networkURL = {
|
var networkURL = {
|
||||||
GE: 'http://dx.doi.org/10.14470/TR560404',
|
GE: 'http://dx.doi.org/10.14470/TR560404',
|
||||||
@ -175,6 +180,11 @@ $(document).ready(function() {
|
|||||||
if ( Number(parameters['timespan']) ) {
|
if ( Number(parameters['timespan']) ) {
|
||||||
config['map']['timespan'] = Number(parameters['timespan']);
|
config['map']['timespan'] = Number(parameters['timespan']);
|
||||||
};
|
};
|
||||||
|
if ( Number(parameters['tab']) ) {
|
||||||
|
if ( Number(parameters['tab']) < config['tab']['max'] ) {
|
||||||
|
config['tab']['active'] = Number(parameters['tab']);
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
// AJAX setup
|
// AJAX setup
|
||||||
$.ajaxSetup({timeout: config['ajax']['timeout']});
|
$.ajaxSetup({timeout: config['ajax']['timeout']});
|
||||||
@ -184,8 +194,8 @@ $(document).ready(function() {
|
|||||||
|
|
||||||
// create tabs
|
// create tabs
|
||||||
$('#tabs').tabs({
|
$('#tabs').tabs({
|
||||||
active: 0,
|
active: config['tab']['active'],
|
||||||
disabled: [2],
|
disabled: config['tab']['disabled'],
|
||||||
activate: function( event, ui ) { ui['newPanel'].find('table').trigger("update", [true]); },
|
activate: function( event, ui ) { ui['newPanel'].find('table').trigger("update", [true]); },
|
||||||
});
|
});
|
||||||
// create accordions
|
// create accordions
|
||||||
|
Loading…
Reference in New Issue
Block a user