Browse Source

nginx下有可能加载不了二级目录的bug

star7th 9 years ago
parent
commit
18d822ad4b
2 changed files with 7 additions and 8 deletions
  1. 1 1
      Application/Home/View/Page/edit.html
  2. 6 7
      Public/js/page/edit.js

+ 1 - 1
Application/Home/View/Page/edit.html

@@ -116,7 +116,7 @@
 <script src="__PUBLIC__/editor.md/plugins/table-dialog/table-dialog.js"></script>
 <script src="__PUBLIC__/editor.md/plugins/reference-link-dialog/reference-link-dialog.js"></script>
 
-<script src="__PUBLIC__/js/page/edit.js?v=1.1.2thirdonmopq"></script>
+<script src="__PUBLIC__/js/page/edit.js?v=1.1.2thirdonmopqr"></script>
 <if condition="LANG_SET=='en-us'">
     <script src="__PUBLIC__/editor.md/languages/en.js"></script>
 </if>

+ 6 - 7
Public/js/page/edit.js

@@ -10,10 +10,10 @@ $(function() {
   function secondCatList() {
     var default_second_cat_id = $("#default_second_cat_id").val();
     var item_id = $("#item_id").val();
-    $.get(
-      "./", {
+    $.post(
+      "?s=home/catalog/secondCatList",
+      {
         "item_id": item_id,
-        "s": "home/catalog/secondCatList",
       },
       function(data) {
         $("#cat_id").html('<OPTION value="0">'+lang["none"]+'</OPTION>');
@@ -41,10 +41,9 @@ $(function() {
   function getChildCatList() {
     var cat_id = $("#cat_id").val();
     var default_child_cat_id = $("#default_child_cat_id").val();
-    $.get(
-      "./", {
-        "cat_id": cat_id,
-        "s": "home/catalog/childCatList",
+    $.post(
+      "?s=home/catalog/childCatList", {
+        "cat_id": cat_id
       },
       function(data) {
         $("#parent_cat_id").html('<OPTION value="0">'+lang["none"]+'</OPTION>');