sbd-npm 1.4.29 → 1.4.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/status.js +5 -4
package/package.json
CHANGED
package/status.js
CHANGED
@@ -913,20 +913,21 @@ $(function () {
|
|
913
913
|
$("#word_modal_title").html("随机单词");
|
914
914
|
$('#word_modify').css('display', 'none');
|
915
915
|
$("#word_value").val("Loading...").attr('readonly', true);
|
916
|
-
$("#word_chinese").val("Loading...");
|
916
|
+
$("#word_chinese").val("Loading...").attr('readonly', true);
|
917
917
|
Util.post(location.pathname, {"active_div": "word_random"}, function (j) {
|
918
918
|
if (j["word"]) {
|
919
919
|
$("#word_value").val(j["word"]);
|
920
920
|
$("#word_chinese").val(j["chinese"]);
|
921
|
+
$("#word_modal_title").html(Util.pack_html_link("https://cn.bing.com/dict/search?q=" + j["word"], "随机单词"));
|
921
922
|
}
|
922
923
|
});
|
923
924
|
} else {
|
924
|
-
$("#word_modal_title").html("单词修改");
|
925
|
-
$('#word_modify').css('display', 'inline');
|
926
925
|
let tr_obj = $(e.relatedTarget).parent().parent();
|
927
926
|
let word = $(tr_obj).children('td').eq(1).text();
|
927
|
+
$("#word_modal_title").html(Util.pack_html_link("https://cn.bing.com/dict/search?q=" + word, "单词修改"));
|
928
|
+
$('#word_modify').css('display', 'inline');
|
928
929
|
$("#word_value").val(word).attr('readonly', true);
|
929
|
-
$("#word_chinese").val($(tr_obj).children('td').eq(2).text());
|
930
|
+
$("#word_chinese").val($(tr_obj).children('td').eq(2).text()).attr('readonly', false);
|
930
931
|
$("#word_modify").off("click").click(function () {
|
931
932
|
let chinese = $("#word_chinese").val();
|
932
933
|
if (chinese) {
|