Quellcode durchsuchen

git-svn-id: https://192.168.57.71/svn/jsgkj@1387 931142cf-59ea-a443-aa0e-51397b428577

ld_zhoutl vor 8 Jahren
Ursprung
Commit
2985b0b7a6
1 geänderte Dateien mit 12 neuen und 1 gelöschten Zeilen
  1. 12 1
      gkaqv2/trunk/modules/web/src/main/webapp/static/js/common/common.js

+ 12 - 1
gkaqv2/trunk/modules/web/src/main/webapp/static/js/common/common.js

@@ -441,5 +441,16 @@ if (typeof constData == "undefined") {
  * 显示总记录数
  */
 function showTotalRecord(data) {
-    $("#totalRecord").html("共"+data.responseJSON.total+"条记录");
+    if($("#totalRecord")) {
+        $("#totalRecord").html("共"+data.responseJSON.total+"条记录");
+    }
+}
+
+/**
+ * 回到主页
+ */
+function gotoHome() {
+    if(window.parent) {
+        window.parent.location.reload();
+    }
 }