summaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
Diffstat (limited to 'assets')
-rw-r--r--assets/css/style.scss14
-rw-r--r--assets/js/pjax.js2
2 files changed, 14 insertions, 2 deletions
diff --git a/assets/css/style.scss b/assets/css/style.scss
index 879154e..44632e2 100644
--- a/assets/css/style.scss
+++ b/assets/css/style.scss
@@ -190,4 +190,16 @@ td.h-entry {
td.h-entry:hover {
background: #f9f9f9;
-} \ No newline at end of file
+}
+
+body.pjax-loading::after {
+ content: '';
+ position: fixed;
+ top: 16px;
+ right: 16px;
+ width: 20px;
+ height: 20px;
+ background: url('/images/loading.svg') center / contain no-repeat;
+ z-index: 9999;
+ pointer-events: none;
+ } \ No newline at end of file
diff --git a/assets/js/pjax.js b/assets/js/pjax.js
index eafe723..358c67b 100644
--- a/assets/js/pjax.js
+++ b/assets/js/pjax.js
@@ -174,7 +174,7 @@
':not([href$=".xml"]):not([href$=".json"]):not([href$=".tgz"]):not([href$=".zip"])' +
':not([href^="/Live2dHistoire"])';
$(document).pjax('a' + exclude, PJAX_OPTS.container, PJAX_OPTS);
- $(document).on('submit', 'form', function (e) {
+ $(document).on('submit', 'form#search-input-all', function (e) {
$.pjax.submit(e, PJAX_OPTS.container, PJAX_OPTS);
});
$(document).on('pjax:send', function () {