Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- UpdateSaveMessage = () ->
- [cls, message] =
- if $("#Entry_Status").val() == "Draft"
- ["warning", "saved as a draft"]
- else
- [
- "info",
- "posted to your blog, and published " +
- if $("#publish-on-date").val().length
- "on " + $("#publish-on-date").val() + " at " + ($("#publish-on-time").val() || "12:00 pm")
- else
- "immediately"
- ]
- $("#save-message")
- .text(message)
- .parent(".submit-row")
- .attr("class", cls + " submit-row")
Add Comment
Please, Sign In to add comment