Begin working on playlists
This commit is contained in:
parent
63e6cf3803
commit
28a960285c
4 changed files with 174 additions and 2 deletions
|
|
@ -1316,3 +1316,23 @@ function hasPermission(key) {
|
|||
}
|
||||
return RANK >= v;
|
||||
}
|
||||
|
||||
function makeAlert(title, text, klass) {
|
||||
if(!klass) {
|
||||
klass = "alert-info";
|
||||
}
|
||||
|
||||
var al = $("<div/>").addClass("alert")
|
||||
.addClass(klass)
|
||||
.text(text);
|
||||
$("<br/>").prependTo(al);
|
||||
$("<strong/>").text(title).prependTo(al);
|
||||
$("<button/>").addClass("close pull-right").html("×")
|
||||
.click(function() {
|
||||
al.hide("blind", function() {
|
||||
al.remove();
|
||||
});
|
||||
})
|
||||
.prependTo(al);
|
||||
return al;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue