瀏覽代碼

版本恢复

moshaorui 4 月之前
父節點
當前提交
8e73409691
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7 0
      resources/views/admin/pages-custom/ace.blade.php

+ 7 - 0
resources/views/admin/pages-custom/ace.blade.php

@@ -558,6 +558,9 @@
             }
             //移除历史记录内容
             $('#contentDetails').html('');
+            $("#templateLogId").val('');
+            $("#templateVersion").val('');
+
             $.ajax({
                 url: '/prime-control/dist-template/ace',
                 method: 'POST',
@@ -626,6 +629,10 @@
         $("#restoreTemplateLog").click(function () {
             var logId = $("#templateLogId").val();
             var templateVersion = $("#templateVersion").val();
+            if (logId == '' || templateVersion == '') {
+                Dcat.error('Please select the history record first.');
+                return false;
+            }
             //确认框
             msg = 'Are you sure to restore to version: '+templateVersion+'?';
             Dcat.confirm('Confirm Recovery',msg , function () {