* Adjust code detail.

This commit is contained in:
Yagami
2020-11-30 17:21:55 +08:00
parent 5e6cea9a2d
commit 61ba67361d
+3 -2
View File
@@ -34,10 +34,11 @@ $(function()
if($blockParams.find('#actionLink').size() > 0) $form.attr('action', $blockParams.find('#actionLink').val());
$titleInput = $blockParams.find('#title');
if($titleInput.length && $('#blockParams #paramstype').length)
if($titleInput.length && $('#paramstype').length)
{
blockTitle = $titleInput.val();
preValue = $('#blockParams #paramstype').find('option:selected').text();
preValue = $('#paramstype').find('option:selected').text();
var preIndex = blockTitle.indexOf(' - ' + preValue);
if(preIndex >= 0) blockTitle = blockTitle.substring(0, preIndex);