mirror of
https://github.com/wahyd4/jQuery-Tags-Input.git
synced 2026-08-09 12:56:35 +10:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
240f4274a0 | ||
|
|
14a01fa89f | ||
|
|
9b584de09a |
@@ -1,4 +1,4 @@
|
||||
jQuery Tags Input Plugin 1.2.4
|
||||
jQuery Tags Input Plugin 1.2.5
|
||||
|
||||
Copyright (c) 2011 XOXCO, Inc
|
||||
|
||||
|
||||
+14
-5
@@ -1,8 +1,8 @@
|
||||
/*
|
||||
|
||||
jQuery Tags Input Plugin 1.2.4
|
||||
jQuery Tags Input Plugin 1.2.5
|
||||
|
||||
Copyright (c) 2010 XOXCO, Inc
|
||||
Copyright (c) 2011 XOXCO, Inc
|
||||
|
||||
Documentation for this plugin lives here:
|
||||
http://xoxco.com/clickable/jquery-tags-input
|
||||
@@ -38,8 +38,17 @@
|
||||
}
|
||||
|
||||
if (value !='' && skipTag != true) {
|
||||
|
||||
$('<span class="tag">'+value + ' <a href="#" title="Remove tag" onclick="return $(\'#'+id + '\').removeTag(\'' + escape(value) + '\');">x</a></span>').insertBefore('#'+id+'_addTag');
|
||||
$('<span>').addClass('tag').append(
|
||||
$('<span>').text(value).append(' '),
|
||||
$('<a>', {
|
||||
href : '#',
|
||||
title : 'Removing tag',
|
||||
text : 'x'
|
||||
}).click(function () {
|
||||
return $('#' + id).removeTag(escape(value));
|
||||
})
|
||||
).insertBefore('#' + id + '_addTag');
|
||||
|
||||
tagslist.push(value);
|
||||
|
||||
$('#'+id+'_tag').val('');
|
||||
@@ -252,4 +261,4 @@
|
||||
}
|
||||
};
|
||||
|
||||
})(jQuery);
|
||||
})(jQuery);
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user