* adjust for edit doc.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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() == '')
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user