#whatshouldwecallactors

How you felt in college


function decodeContentTags(str) {
    var div = document.createElement("div");
    div.innerHTML = str;
    return div.innerHTML;
}
// ]]]]>]]>
function newTagLinks(postID, tags) {
    tag = tags.split(",");
    postTags = "post_tags_" + postID;
    $(postTags).innerHTML = "";
    for (i = 0; i < tag.length; i++) {
        var addLabel = document.createElement("a");
        addLabel.setAttribute("href", "/tagged/" + tag[i]);
        addLabel.innerHTML = "#" + tag[i];
        $(postTags).appendChild(addLabel);
    }
}
// ]]]]>]]>
function displayTags(postID) {
    existingTags = "";
    hasTags = true;
    if (String($("post_tags_" + postID)) != "null") {
        for (i = 0; i < $("post_tags_" + postID).childElements().length; i++) {
            existingTags += $("post_tags_" + postID).down(i).innerHTML.substr(1) + ",";
        }
    }
    existingTags = existingTags.slice(0, - 1);
    tags = prompt("Tags", existingTags);
    if (tags != null) {
        $("tagEdit-" + postID).innerHTML = "working...";
        $("tagEdit-" + postID).removeAttribute("onClick");
        editTags(postID, tags);
    }
}
// ]]]]>]]>
function editTags(postID, tags) {
    var editPost = "/edit/" + postID;
    new Ajax.Request(editPost, {onSuccess: function (response) {r = response.responseText;dataStart = r.indexOf("

  1. bennyonthedispatch reblogged this from whatshouldwecallactors
  2. weirdowhocarez reblogged this from whatshouldwecallactors
  3. kitjof reblogged this from whatshouldwecallactors
  4. vanillarobotic reblogged this from whatshouldwecallactors
  5. firetitan reblogged this from whatshouldwecallactors
  6. theropeneverlies reblogged this from whatshouldwecallactors and added:
    every monday.
  7. yukicachu reblogged this from freckledalbino
  8. basedoffthenovel reblogged this from whatshouldwecallactors
  9. alittlesummerwind reblogged this from whatshouldwecallactors
  10. puddles-the-talking-dog reblogged this from whatshouldwecallactors
  11. itsacoffeepot reblogged this from whatshouldwecallactors
  12. utmalumpluvia reblogged this from whatshouldwecallactors
  13. anabundanceofwanderlust reblogged this from whatshouldwecallactors
  14. transitioningtheatremajor reblogged this from whatshouldwecallactors
  15. freckledalbino reblogged this from whatshouldwecallactors
  16. nattybobo13 submitted this to whatshouldwecallactors