Simple inline msg for timestamp reset; JS only.
This commit is contained in:
templates/2k11/admin
@ -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
|
||||
|
Reference in New Issue
Block a user