Commit e7d64d17 by doszhang

dos

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