|
@@ -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 () {
|