UI Cleanup - Updated Shared and Shims subtrees.

This commit is contained in:
Taloth Saldono 2015-02-14 11:17:53 +01:00
parent 019525dd9d
commit d6079a701c
39 changed files with 686 additions and 448 deletions

View file

@ -1,15 +1,15 @@
var $ = require('jquery');
module.exports = {
get : function(resource){
get : function(resource) {
var url = window.NzbDrone.ApiRoot + '/' + resource;
var _data;
$.ajax({
url : url,
async : false
}).done(function(data){
}).done(function(data) {
_data = data;
}).error(function(xhr, status, error){
}).error(function(xhr, status, error) {
throw error;
});
return _data;