Ombi/PlexRequests.UI/Content/site.js
tidusjar 0942bfcbcc Some error handling and ensure we are an admin to delete requests.
Also started on the approval of everything
2016-03-08 14:26:26 +00:00

19 lines
419 B
JavaScript

function generateNotify(message, type) {
// type = danger, warning, info, successs
$.notify({
// options
message: message
}, {
// settings
type: type
});
}
function checkJsonResponse(response) {
if (response.result === true) {
return true;
} else {
generateNotify(response.message, "warning");
return false;
}
}