Browse Source

WebUI: Fix JavaScript exception on WebUI load

adaptive-webui-19844
buinsky 9 years ago
parent
commit
418734b0a3
  1. 3
      src/webui/www/public/properties_content.html
  2. 14
      src/webui/www/public/scripts/client.js

3
src/webui/www/public/properties_content.html

@ -107,4 +107,5 @@ @@ -107,4 +107,5 @@
<script type="text/javascript">
torrentPeersTable.setup('torrentPeersTable', 'torrentPeersTableHeader', null);
</script>
$(getLocalStorageItem('selected_tab', 'PropGeneralLink')).click();
</script>

14
src/webui/www/public/scripts/client.js

@ -25,9 +25,15 @@ @@ -25,9 +25,15 @@
torrentsTable = new TorrentsTable();
torrentPeersTable = new TorrentPeersTable();
var updatePropertiesPanel = function(){};
var updateTorrentPeersData = function(){};
var updateMainData = function(){};
var updatePropertiesPanel = function () {};
var updateTorrentData = function () {};
var updateTrackersData = function () {};
var updateTorrentPeersData = function () {};
var updateWebSeedsData = function () {};
var updateTorrentFilesData = function () {};
var updateMainData = function () {};
var alternativeSpeedLimits = false;
var queueing_enabled = true;
var syncMainDataTimerPeriod = 1500;
@ -578,8 +584,6 @@ window.addEvent('load', function () { @@ -578,8 +584,6 @@ window.addEvent('load', function () {
$('propertiesPanel_collapseToggle').addEvent('click', function(e){
updatePropertiesPanel();
});
$(getLocalStorageItem('selected_tab', 'PropGeneralLink')).click();
},
column : 'mainColumn',
height : prop_h

Loading…
Cancel
Save