Commit fb44542a by doszhang

dos

parent 5d2fc698
...@@ -776,7 +776,7 @@ function addCustomizeFlag() { ...@@ -776,7 +776,7 @@ function addCustomizeFlag() {
checkFlagListStatus = true; checkFlagListStatus = true;
firstChooseFlag = false; firstChooseFlag = false;
} }
if (flagStack.indexOf(text)) { if (flagStack.indexOf(text) != -1) {
$('#notification_area').remove(); $('#notification_area').remove();
my_notify('这个Flag已经立过啦!'); my_notify('这个Flag已经立过啦!');
} }
...@@ -805,7 +805,7 @@ function addFlag(e) { ...@@ -805,7 +805,7 @@ function addFlag(e) {
$('.flag-choose-tip').removeClass('active'); $('.flag-choose-tip').removeClass('active');
let text = $(this).find('.flag-text').text(); let text = $(this).find('.flag-text').text();
if (flagStack.indexOf(text)) { if (flagStack.indexOf(text) != -1) {
$('#notification_area').remove(); $('#notification_area').remove();
my_notify('这个Flag已经立过啦!'); my_notify('这个Flag已经立过啦!');
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment