mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-12-21 08:09:35 +08:00
Merge pull request #4566 from buinsky/WebUI_tabs
WebUI: Remember last opened tab
This commit is contained in:
commit
717759db29
@ -532,6 +532,7 @@ window.addEvent('load', function () {
|
|||||||
$('prop_files').addClass("invisible");
|
$('prop_files').addClass("invisible");
|
||||||
$('prop_peers').addClass("invisible");
|
$('prop_peers').addClass("invisible");
|
||||||
updatePropertiesPanel();
|
updatePropertiesPanel();
|
||||||
|
localStorage.setItem('selected_tab', this.id);
|
||||||
});
|
});
|
||||||
|
|
||||||
$('PropTrackersLink').addEvent('click', function(e){
|
$('PropTrackersLink').addEvent('click', function(e){
|
||||||
@ -541,6 +542,7 @@ window.addEvent('load', function () {
|
|||||||
$('prop_files').addClass("invisible");
|
$('prop_files').addClass("invisible");
|
||||||
$('prop_peers').addClass("invisible");
|
$('prop_peers').addClass("invisible");
|
||||||
updatePropertiesPanel();
|
updatePropertiesPanel();
|
||||||
|
localStorage.setItem('selected_tab', this.id);
|
||||||
});
|
});
|
||||||
|
|
||||||
$('PropPeersLink').addEvent('click', function(e){
|
$('PropPeersLink').addEvent('click', function(e){
|
||||||
@ -550,6 +552,7 @@ window.addEvent('load', function () {
|
|||||||
$('prop_webseeds').addClass("invisible");
|
$('prop_webseeds').addClass("invisible");
|
||||||
$('prop_files').addClass("invisible");
|
$('prop_files').addClass("invisible");
|
||||||
updatePropertiesPanel();
|
updatePropertiesPanel();
|
||||||
|
localStorage.setItem('selected_tab', this.id);
|
||||||
});
|
});
|
||||||
|
|
||||||
$('PropWebSeedsLink').addEvent('click', function(e){
|
$('PropWebSeedsLink').addEvent('click', function(e){
|
||||||
@ -559,6 +562,7 @@ window.addEvent('load', function () {
|
|||||||
$('prop_files').addClass("invisible");
|
$('prop_files').addClass("invisible");
|
||||||
$('prop_peers').addClass("invisible");
|
$('prop_peers').addClass("invisible");
|
||||||
updatePropertiesPanel();
|
updatePropertiesPanel();
|
||||||
|
localStorage.setItem('selected_tab', this.id);
|
||||||
});
|
});
|
||||||
|
|
||||||
$('PropFilesLink').addEvent('click', function(e){
|
$('PropFilesLink').addEvent('click', function(e){
|
||||||
@ -568,11 +572,14 @@ window.addEvent('load', function () {
|
|||||||
$('prop_webseeds').addClass("invisible");
|
$('prop_webseeds').addClass("invisible");
|
||||||
$('prop_peers').addClass("invisible");
|
$('prop_peers').addClass("invisible");
|
||||||
updatePropertiesPanel();
|
updatePropertiesPanel();
|
||||||
|
localStorage.setItem('selected_tab', this.id);
|
||||||
});
|
});
|
||||||
|
|
||||||
$('propertiesPanel_collapseToggle').addEvent('click', function(e){
|
$('propertiesPanel_collapseToggle').addEvent('click', function(e){
|
||||||
updatePropertiesPanel();
|
updatePropertiesPanel();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$(getLocalStorageItem('selected_tab', 'PropGeneralLink')).click();
|
||||||
},
|
},
|
||||||
column : 'mainColumn',
|
column : 'mainColumn',
|
||||||
height : prop_h
|
height : prop_h
|
||||||
|
Loading…
Reference in New Issue
Block a user