Work on user options

This commit is contained in:
calzoneman 2013-12-25 16:18:21 -05:00
parent fc63191773
commit 9d49df6157
8 changed files with 197 additions and 258 deletions

View file

@ -238,7 +238,7 @@ $("#userpl_save").click(function() {
$(select).click(function() {
VIDEOQUALITY = preset;
USEROPTS.default_quality = select;
saveOpts();
storeOpts();
var btn = $("#qdrop");
var caret = btn.find(".caret").detach();
btn.text($(select).text());
@ -435,9 +435,12 @@ $(window).resize(function() {
/* load channel */
var loc = document.location+"";
var m = loc.match(/\/r\/([a-zA-Z0-9-_]+)$/);
var m = loc.match(/\/r\/([a-zA-Z0-9-_#]+)$/);
if(m) {
CHANNEL.name = m[1];
if (CHANNEL.name.indexOf("#") !== -1) {
CHANNEL.name = CHANNEL.name.substring(0, CHANNEL.name.indexOf("#"));
}
}
/*
else {