瀏覽代碼

Fixed the "Relationships" Flash navigator so that it works also on Safari. (tested with Safari 5.0.2 on Windows)

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@926 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 14 年之前
父節點
當前提交
a08fd102be
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      pages/UI.php

+ 3 - 3
pages/UI.php

@@ -1424,8 +1424,6 @@ EOF
 		$oP->add("<div id=\"impacted_objects\" style=\"width:100%;background-color:#fff;padding:10px;\"><p style=\"height:150px;\">&nbsp;</p></div>");
 		$oP->add_ready_script(
 <<<EOF
-	UpdateImpactedObjects('$sClass', $id, '$sRelation');
-	
 	var ajax_request = null;
 	
 	function UpdateImpactedObjects(sClass, iId, sRelation)
@@ -1443,7 +1441,7 @@ EOF
 				ajax_request = null;
 			}
 	
-			ajax_request = $.get('xml.navigator.php', { class: sClass, id: iId, relation: sRelation, format: 'html' },
+			ajax_request = $.get('xml.navigator.php', { 'class': sClass, id: iId, relation: sRelation, format: 'html' },
 					function(data)
 					{
 						$('#impacted_objects').empty();
@@ -1455,6 +1453,8 @@ EOF
 			);
 		}
 	}
+	
+	UpdateImpactedObjects('$sClass', $id, '$sRelation');
 EOF
 		);
 		$oP->SetCurrentTab('');