Skip to content
This repository
Browse code

guard refreshrows on body existing

  • Loading branch information...
commit 2d20fb5f5e527a4473a0a5c7d433d7e381ab3789 1 parent 5ee335a
Kyle Graehl authored April 26, 2011

Showing 1 changed file with 5 additions and 5 deletions. Show diff stats Hide diff stats

  1. 10  main.js
10  main.js
@@ -1383,7 +1383,7 @@ function loadTorrentLangStrings() {
1383 1383
 	// TORRENT JOBS LIST
1384 1384
 	//--------------------------------------------------
1385 1385
 
1386  
-	utWebUI.trtTable.refreshRows();
  1386
+	if (utWebUI.trtTable.tb.body) { utWebUI.trtTable.refreshRows(); }
1387 1387
 	utWebUI.trtTable.setConfig({
1388 1388
 		"resetText": L_("MENU_RESET"),
1389 1389
 		"colText": {
@@ -1461,7 +1461,7 @@ function loadDetailPaneStrings() {
1461 1461
 
1462 1462
 	// -- Peers Tab
1463 1463
 
1464  
-	utWebUI.prsTable.refreshRows();
  1464
+	if (utWebUI.prsTable.tb.body) { utWebUI.prsTable.refreshRows(); }
1465 1465
 	utWebUI.prsTable.setConfig({
1466 1466
 		"resetText": L_("MENU_RESET"),
1467 1467
 		"colText": {
@@ -1488,7 +1488,7 @@ function loadDetailPaneStrings() {
1488 1488
 
1489 1489
 	// -- Files Tab
1490 1490
 
1491  
-	utWebUI.flsTable.refreshRows();
  1491
+	if (utWebUI.flsTable.tb.body) { utWebUI.flsTable.refreshRows(); }
1492 1492
 	utWebUI.flsTable.setConfig({
1493 1493
 		"resetText": L_("MENU_RESET"),
1494 1494
 		"colText": {
@@ -1645,7 +1645,7 @@ function loadRSSStrings() {
1645 1645
 
1646 1646
 	_loadStrings("text", "DLG_RSSDOWNLOADER_03")
1647 1647
 
1648  
-	utWebUI.rssfdTable.refreshRows();
  1648
+	if (utWebUI.rssfdTable.tb.body) { utWebUI.rssfdTable.refreshRows(); }
1649 1649
 	utWebUI.rssfdTable.setConfig({
1650 1650
 		"resetText": L_("MENU_RESET"),
1651 1651
 		"colText": {
@@ -1887,7 +1887,7 @@ function loadSettingStrings() {
1887 1887
 
1888 1888
 	// -- Advanced Options
1889 1889
 
1890  
-	utWebUI.advOptTable.refreshRows();
  1890
+	if (utWebUI.advOptTable.tb.body) { utWebUI.advOptTable.refreshRows(); }
1891 1891
 	utWebUI.advOptTable.setConfig({
1892 1892
 		"resetText": L_("MENU_RESET"),
1893 1893
 		"colText": {

0 notes on commit 2d20fb5

Please sign in to comment.
Something went wrong with that request. Please try again.