Skip to content

Commit

Permalink
minor gui improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
cdhigh committed May 1, 2024
1 parent c2e9617 commit ab9a7bd
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
3 changes: 2 additions & 1 deletion application/static/library.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,8 @@ function SubscribeSharedFeed(title, feedurl, isfulltext, dbId) {
data: {title: title, fulltext: isfulltext, url: feedurl, fromsharedlibrary: 'true', 'recipeId': dbId},
success: function (resp, textStatus, xhr) {
if (resp.status == "ok") {
ShowSimpleModalDialog('<h2>' + i18n.congratulations + '</h2><p>' + i18n.feedSubscribed + '</p>');
$('.additional-btns').stop(true).hide();
$("#toast").fadeIn().delay(3000).fadeOut();
} else {
alert(resp.status);
}
Expand Down
2 changes: 1 addition & 1 deletion application/templates/book_audiolator.html
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
<legend><h3>{{_("Test (Please save settings firstly)")}}</h3></legend>
<div class="pure-control-group">
<label>{{_("Text")}}</label>
<textarea class="pure-u-1 pure-u-sm-1-2" name="tts_test_src_text" id="tts_test_src_text">{{famous}}</textarea>
<textarea class="pure-u-1 pure-u-sm-1-2" name="tts_test_src_text" id="tts_test_src_text" rows="4">{{famous}}</textarea>
</div>
<div class="pure-control-group">
<label></label>
Expand Down
4 changes: 2 additions & 2 deletions application/templates/book_translator.html
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,11 @@
<legend><h3>{{_("Test (Please save settings firstly)")}}</h3></legend>
<div class="pure-control-group">
<label>{{_("Text")}}</label>
<textarea class="pure-u-1 pure-u-sm-1-2" name="translator_test_src_text" id="translator_test_src_text">{{famous}}</textarea>
<textarea class="pure-u-1 pure-u-sm-1-2" name="translator_test_src_text" id="translator_test_src_text" rows="4">{{famous}}</textarea>
</div>
<div class="pure-control-group">
<label>{{_("Translation")}}</label>
<textarea class="pure-u-1 pure-u-sm-1-2" name="translator_test_dst_text" id="translator_test_dst_text" readonly></textarea>
<textarea class="pure-u-1 pure-u-sm-1-2" name="translator_test_dst_text" id="translator_test_dst_text" rows="4" readonly></textarea>
</div>
</fieldset>
<p style="text-align:center;">
Expand Down
3 changes: 3 additions & 0 deletions application/templates/library.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@
<!-- 由脚本填充 -->
</div>
</div>
<div id="toast" class="toast">
<i>&#10003; {{_('This feed has been successfully subscribed.')}}</i>
</div>
</div>
{% endblock -%}

Expand Down
1 change: 1 addition & 0 deletions tools/update_req.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ def gaeify_config_py(cfgFile):
#arg: gae[B2,2,t2,20m]
def update_worker_yaml(workerYamlFile, arg):
items = arg.split('[')[-1].rstrip(']').split(',') if '[' in arg else []
items = [e.strip() for e in items if e.strip()]
if not items:
return

Expand Down

0 comments on commit ab9a7bd

Please sign in to comment.