1
0

Simple inline msg for timestamp reset; JS only.

This commit is contained in:
Matthias Mees
2014-02-10 20:28:01 +01:00
parent 9af2e54f6f
commit d7061e154a
2 changed files with 12 additions and 0 deletions

@ -776,6 +776,14 @@ var AccessifyHTML5 = function (defaults, more_fixes) {
$('#serendipityNewTimestamp').val($('#serendipityNewTimestamp').val().replace("T", " "));
}
e.preventDefault();
// Inline notification, we might want to make this reuseable
$('<span id="msg_timestamp" class="msg_notice"><span class="icon-info-circled"></span>Timestamp has been reset <a class="remove_msg" href="#msg_timestamp"><span class="icon-cancel"></span><span class="visuallyhidden">Remove message</span></a></span>').insertBefore('#edit_entry_title'); // i18n
// Remove timestamp msg
$('.remove_msg').click(function(e) {
e.preventDefault();
var $target = $(this).parent();
$target.fadeOut(250, function() { $target.remove(); });
});
});
// Editor tools