- option to resume/start from beginning at the title view

- option to toggle read/unread status at the title view
- move all embeded JS to public/
This commit is contained in:
Alex Ling
2020-02-16 03:19:29 +00:00
parent 08a1052ca4
commit 93e6d7cae6
9 changed files with 176 additions and 78 deletions
+16
View File
@@ -0,0 +1,16 @@
$(function(){
var target = '/admin/user/edit';
if (username) target += username;
$('form').attr('action', target);
function alert(level, text) {
hideAlert();
var html = '<div class="uk-alert-' + level + '" uk-alert><a class="uk-alert-close" uk-close></a><p>' + text + '</p></div>';
$('#alert').append(html);
}
function hideAlert() {
$('#alert').empty();
}
if (error) alert('danger', error);
});