* adjust for edit doc.

This commit is contained in:
wangyidong
2023-03-31 17:54:29 +08:00
parent 23dfbe0667
commit 26d9d2ba55
4 changed files with 17 additions and 17 deletions
+14
View File
@@ -341,3 +341,17 @@ function setSavePath()
$('#savePath').html(savePath).attr('title', savePath);
}
/**
* Submit form.
*
* @param object $object
* @access public
* @return void
*/
function submit(object)
{
$(object).attr('type', 'submit');
$('#dataform').submit();
setTimeout(function(){$(object).attr('type', 'button').removeAttr('disabled')}, 2000);
}
+2 -2
View File
@@ -25,9 +25,9 @@ $(function()
return false;
}
$('#status').val('draft');
$('#dataform').submit();
submit(this);
});
$('#releaseBtn').click(function(){$('#dataform').submit();});
$('#releaseBtn').click(function(){submit(this);});
$('#basicInfoLink').click(function()
{
if($('#editorTitle').val() == '')
-14
View File
@@ -168,17 +168,3 @@ function loadWhitelist(libID)
}
});
}
/**
* Submit form.
*
* @param object $object
* @access public
* @return void
*/
function submit(object)
{
$(object).attr('type', 'submit');
$('#dataform').submit();
setTimeout(function(){$(object).attr('type', 'button').removeAttr('disabled')}, 1000);
}
+1 -1
View File
@@ -31,7 +31,7 @@
<td class="doc-title" colspan='3'><?php echo html::input('title', '', "placeholder='{$lang->doc->titlePlaceholder}' id='editorTitle' class='form-control' required");?></td>
<td class="text-right btn-tools">
<span id='savePath' class='text-gray'></span>
<?php echo html::commonButton($lang->doc->saveDraft, "id='saveDraft'", "btn btn-secondary");?>
<?php echo html::commonButton($lang->doc->saveDraft, "id='saveDraft' data-placement='bottom'", "btn btn-secondary");?>
<?php echo html::a('#modalBasicInfo', $lang->release->common, '', "data-toggle='modal' id='basicInfoLink' class='btn btn-primary'");?>
</td>
</tr>