Created
September 16, 2011 00:29
-
-
Save sekimura/1220879 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for (i in result.tags) { | |
tag = result.tags[i]; | |
var link = $("<a />"); | |
link.addClass("apptag"); | |
link.attr("href", "http://appserver.app.saymedia.com/?tag=" + tag) | |
link.text(tag); | |
var del = $("<span />"); | |
del.addClass("tag_modifier"); | |
del.toggleClass("minimized", $("#new_tag").parent().hasClass("minimized")); | |
del.text("X"); | |
del.data('tag', tag); | |
del.click(function() { | |
remove_tag($(this).data('tag')); | |
}); | |
$("#existing_tags").append(link, del, " "); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment