Commit e7d64d17 by doszhang

dos

parent ca9431b3
......@@ -776,10 +776,6 @@ function addCustomizeFlag() {
checkFlagListStatus = true;
firstChooseFlag = false;
}
if (flagStack.indexOf(text) != -1) {
$('#notification_area').remove();
my_notify('这个Flag已经立过啦!');
}
flagStack.push(text);
addFlagToList(text);
$('.flag-page .choose-num').text((chooseNum++) + 1);
......@@ -793,6 +789,12 @@ function addFlag(e) {
checkFlagListStatus = true;
firstChooseFlag = false;
}
let text = $(this).find('.flag-text').text();
if (flagStack.indexOf(text) != -1) {
$('#notification_area').remove();
my_notify('这个Flag已经立过啦!');
return false;
}
// target.startX = e.pageX;
// target.startY = e.pageY;
// calculationStep(target.startX, target.endX, target.startY, target.endY);
......@@ -801,14 +803,8 @@ function addFlag(e) {
$(e.currentTarget).find('.star1,.star2').removeClass('animate');
}, 2500);
$('.flag-choose-tip').removeClass('active');
let text = $(this).find('.flag-text').text();
if (flagStack.indexOf(text) != -1) {
$('#notification_area').remove();
my_notify('这个Flag已经立过啦!');
}
flagStack.push(text);
addFlagToList(text);
$('.flag-page .choose-num').text((chooseNum++) + 1);
......
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