From 91c786199ac44b118a6108d5f70f8b2556b8036e Mon Sep 17 00:00:00 2001 From: shibafu Date: Sun, 21 Apr 2019 17:12:18 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=A2=E3=83=8A=E3=83=AB=E7=B7=A0=E3=82=81?= =?UTF-8?q?=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/assets/js/checkin.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/resources/assets/js/checkin.js b/resources/assets/js/checkin.js index 5682915..bd06bfa 100644 --- a/resources/assets/js/checkin.js +++ b/resources/assets/js/checkin.js @@ -11,7 +11,12 @@ function updateTags() { } function insertTag(value) { - $('#tags').append('
  • ' + value + ' | x
  • '); + $('
  • | x
  • ') + .data('value', value) + .children(':last-child') + .text(value) + .end() + .appendTo('#tags'); } var initTags = $('input[name=tags]').val();