diff --git a/lib/Vroom/Constants.pm b/lib/Vroom/Constants.pm index 2301ee6..e4c2eda 100644 --- a/lib/Vroom/Constants.pm +++ b/lib/Vroom/Constants.pm @@ -149,7 +149,7 @@ use constant JS_STRINGS => qw( # API actions use constant API_ACTIONS => { admin => { - list_rooms => 1, + get_room_list => 1, set_persistent => 1 }, owner => { diff --git a/public/js/vroom.js b/public/js/vroom.js index 2b2692c..85b2d59 100644 --- a/public/js/vroom.js +++ b/public/js/vroom.js @@ -257,7 +257,7 @@ function initAdmin(){ var matches = 0; // Update display of room list - function updateDeviceList(filter, min, max){ + function updateRoomList(filter, min, max){ $('#deviceList').html(''); var filterRe = new RegExp(filter, "gi"); var i = 0; @@ -266,14 +266,24 @@ function initAdmin(){ if (filter === '' || obj.name.match(filterRe)){ matches++; if (i >= min && i < max){ - $('#deviceList').append($('