Browse Source

feat: improve the js bug

tags/v1.21.12.1
colorfulberry 5 years ago
parent
commit
b9633824bb
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      web_src/js/index.js

+ 1
- 0
web_src/js/index.js View File

@@ -1108,6 +1108,7 @@ async function initRepository() {
is_private: $private, is_private: $private,
}).done((_data) => { }).done((_data) => {
$(`[data-uuid='${$uuid}']`).removeClass('positive active'); $(`[data-uuid='${$uuid}']`).removeClass('positive active');
$(`[data-uuid='${$uuid}']`).data('is-private', $private);
$this.addClass('positive active'); $this.addClass('positive active');
}).fail(() => { }).fail(() => {
window.location.reload(); window.location.reload();


Loading…
Cancel
Save