Begin working on playlists

This commit is contained in:
calzoneman 2013-06-01 11:59:04 -04:00
parent 63e6cf3803
commit 28a960285c
4 changed files with 174 additions and 2 deletions

View file

@ -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("&times;")
.click(function() {
al.hide("blind", function() {
al.remove();
});
})
.prependTo(al);
return al;
}