* replace script src with local js.
This commit is contained in:
@@ -25,6 +25,7 @@ js::set('currentFields', $currentFields);
|
||||
js::set('currentPrompt', $currentPrompt);
|
||||
js::set('promptPlaceholder', $lang->ai->miniPrograms->placeholder->prompt);
|
||||
?>
|
||||
<?php js::import($jsRoot . 'textcomplete/jquery.textcomplete.min.js'); ?>
|
||||
|
||||
<template id="option-template">
|
||||
<div class="input-group">
|
||||
@@ -185,7 +186,6 @@ js::set('promptPlaceholder', $lang->ai->miniPrograms->placeholder->prompt);
|
||||
<span class="text-muted"><?= $lang->ai->miniPrograms->field->prompterDesignTip; ?></span>
|
||||
</div>
|
||||
<div class="form-control" id="autocomplete-textarea" contenteditable="true" style="overflow-wrap: break-word; overflow-y: auto; position: absolute; top: 32px; left: 24px; right: 24px; bottom: 24px; height: auto; width: auto;"></div>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.textcomplete/1.8.5/jquery.textcomplete.min.js"></script>
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
|
||||
@@ -5,6 +5,7 @@ js::set('currentField', $currentFields);
|
||||
js::set('currentPrompt', $currentPrompt);
|
||||
js::set('appID', $appID);
|
||||
?>
|
||||
<?php js::import($jsRoot . 'textcomplete/jquery.textcomplete.min.js'); ?>
|
||||
|
||||
<form action="<?= $this->createLink('ai', 'testMiniProgram', "appID=$appID"); ?>" method="post" style="width: 100%; height: 100%; display: flex; flex-direction: column; padding: 24px 32px 32px 32px; background: #fff; overflow: hidden;">
|
||||
<strong style="font-size: 16px; padding-bottom: 16px;"><?= $lang->ai->prompts->action->test; ?></strong>
|
||||
@@ -54,7 +55,6 @@ js::set('appID', $appID);
|
||||
class="form-control"
|
||||
id="autocomplete-textarea"
|
||||
contenteditable="true"></div>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.textcomplete/1.8.5/jquery.textcomplete.min.js"></script>
|
||||
</div>
|
||||
</div>
|
||||
<div style="flex-basis: 45%; height: 100%;">
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user