last day (15 days later) » 

16:07
hey hey hey
room mode changed to Gallery: anyone may enter, but only approved users can talk
didn't refresh for me
ugh...
that is gay
You can probably check /rooms/info which option was selected
16:08
uh...let's see...
I hoped $('.sprite-sec-gallery').length would be enough. :( fail.
yeah, looking at /rooms/info is probably the surefire way.
ok @Zirak got any hints how to do that with ajax?
request('/rooms/info/{room_id}', function (page) {
    isGallery = /sprite-sec-gallery"\s*title="Gallery/.test(page);
});
Cthulu style
ohh god :P
16:19
yeah...it's used in several different places
room mode changed to Public: anyone may enter and talk
$.ajax({
  url: '/rooms/info/' + Number( /\d+/.exec(location)[0] ),
  success: function(page) {
    console.log(/sprite-sec-gallery"\s*title="Gallery/.test(page));
  }
});
always logs false.
wait. shit.
oh, did I mention I didn't actually test that
room mode changed to Gallery: anyone may enter, but only approved users can talk
$.ajax({
  url: '/rooms/' + Number( /\d+/.exec(location)[0] ),
  success: function(page) {
    alert($(page).find('.sprite-sec-gallery').length);
  }
});
pulls the page in and just checks the refreshed page.
works like a charm (so far)
16:31
hrm, except it doesn't want to work for this room :P
ok shit
it only works for the js room (the button appending)
I just ran it here, seems to work
i think it is my include. idk.
I get no buttons
ok what the serious fuck
it was failing because the url needs two wildcards
rooms/*/*
room mode changed to Public: anyone may enter and talk
room mode changed to Gallery: anyone may enter, but only approved users can talk
room mode changed to Public: anyone may enter and talk

last day (15 days later) »