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

View File

@ -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

View File

@ -1478,6 +1478,10 @@ form > .button_link:first-of-type,
margin: .75em 0;
}
.remove_msg {
margin-left: .4em;
}
.sub_perm {
margin-left: 1em;
}