|
|
@ -57,6 +57,16 @@ var deviceListing, currentUser, groupName, groupOwner;
|
|
|
|
* DOM ready functions.
|
|
|
|
* DOM ready functions.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
$(document).ready(function () {
|
|
|
|
$(document).ready(function () {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var permissionSet = {};
|
|
|
|
|
|
|
|
$.setPermission = function (permission) {
|
|
|
|
|
|
|
|
permissionSet[permission] = true;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$.hasPermission = function (permission) {
|
|
|
|
|
|
|
|
return permissionSet[permission];
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
deviceListing = $("#device-listing");
|
|
|
|
deviceListing = $("#device-listing");
|
|
|
|
currentUser = deviceListing.data("current-user");
|
|
|
|
currentUser = deviceListing.data("current-user");
|
|
|
|
|
|
|
|
|
|
|
|