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