yukyo 3 anni fa
parent
commit
1c741fbc53
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      backstage/templates/tables/editor_table.html

+ 1 - 1
backstage/templates/tables/editor_table.html

@@ -132,6 +132,7 @@
       $('#cdraft').removeAttr('checked');
       $('#cdraft').removeAttr('checked');
       $('#cdraft').prop('checked', obj.checked);
       $('#cdraft').prop('checked', obj.checked);
       updateHeader();
       updateHeader();
+      oTitle = "";
     });
     });
   }
   }
   function updateHeader() {
   function updateHeader() {
@@ -165,7 +166,6 @@
       }
       }
       if (oTitle != $('#ctitle').val() && $('#ctitle').val() != "" && oTitle != "") {
       if (oTitle != $('#ctitle').val() && $('#ctitle').val() != "" && oTitle != "") {
         axios.get('/backstage/modTitle/' + oTitle + '/' + $('#ctitle').val())
         axios.get('/backstage/modTitle/' + oTitle + '/' + $('#ctitle').val())
-        oTitle = $('#ctitle').val();
       }
       }
       postData = {
       postData = {
         content: mdContent,
         content: mdContent,