User profile editing and password
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
controller.$inject = ['$scope'];
|
||||
function controller($scope) {
|
||||
var vm = this;
|
||||
vm.query = {};
|
||||
|
||||
@@ -1,15 +1,17 @@
|
||||
(function () {
|
||||
window.app.factory('downloadSvc',
|
||||
function($http) {
|
||||
(function() {
|
||||
window.app.factory("downloadSvc",
|
||||
[
|
||||
function() {
|
||||
|
||||
var svc = {
|
||||
success: function(data, status, headers, config) {
|
||||
var file = new Blob([data], { type: headers('Content-Type') });
|
||||
var match = /filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/.exec(headers('Content-Disposition'));
|
||||
var file = new Blob([data], { type: headers("Content-Type") });
|
||||
var match = /filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/.exec(headers("Content-Disposition"));
|
||||
saveAs(file, match[1]);
|
||||
}
|
||||
};
|
||||
|
||||
return svc;
|
||||
});
|
||||
}
|
||||
]);
|
||||
})();
|
||||
@@ -14,6 +14,7 @@
|
||||
}
|
||||
});
|
||||
|
||||
controller.$inject = ['$scope'];
|
||||
function controller($scope) {
|
||||
var vm = this;
|
||||
vm.errors = $scope.errors;
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
}
|
||||
});
|
||||
|
||||
controller.$inject = ['$scope'];
|
||||
function controller($scope) {
|
||||
var vm = this;
|
||||
|
||||
|
||||
@@ -1,11 +1,13 @@
|
||||
(function() {
|
||||
window.app.filter('formatCases',
|
||||
window.app.filter("formatCases",
|
||||
[
|
||||
function() {
|
||||
return function(qty) {
|
||||
if (qty === '' || !isFinite(qty))
|
||||
return '';
|
||||
if (qty === "" || !isFinite(qty))
|
||||
return "";
|
||||
|
||||
return '(' + qty + ' cs)';
|
||||
}
|
||||
});
|
||||
return "(" + qty + " cs)";
|
||||
};
|
||||
}
|
||||
]);
|
||||
})();
|
||||
@@ -1,9 +1,11 @@
|
||||
(function () {
|
||||
window.app.filter('hideZero',
|
||||
(function() {
|
||||
window.app.filter("hideZero",
|
||||
[
|
||||
function() {
|
||||
return function(input) {
|
||||
|
||||
return input > 0 ? input : "";
|
||||
}
|
||||
});
|
||||
};
|
||||
}
|
||||
]);
|
||||
})();
|
||||
@@ -21,6 +21,7 @@
|
||||
}
|
||||
});
|
||||
|
||||
controller.$inject = ['$scope'];
|
||||
function controller($scope) {
|
||||
var vm = this;
|
||||
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
}
|
||||
});
|
||||
|
||||
controller.$inject = ['$scope'];
|
||||
function controller($scope) {
|
||||
var vm = this;
|
||||
vm.query = {};
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
(function() {
|
||||
window.app.filter("parseDate",
|
||||
[
|
||||
function() {
|
||||
return function(input) {
|
||||
if (typeof input != 'string' || input.indexOf("/Date") === -1) return input;
|
||||
if (typeof input != "string" || input.indexOf("/Date") === -1) return input;
|
||||
|
||||
return new Date(parseInt(input.substr(6)));
|
||||
}
|
||||
});
|
||||
};
|
||||
}
|
||||
]);
|
||||
})();
|
||||
@@ -14,6 +14,7 @@
|
||||
}
|
||||
});
|
||||
|
||||
controller.$inject = ['$scope'];
|
||||
function controller($scope) {
|
||||
}
|
||||
})();
|
||||
@@ -1,12 +1,14 @@
|
||||
(function() {
|
||||
window.app.filter('toUnits',
|
||||
window.app.filter("toUnits",
|
||||
[
|
||||
function() {
|
||||
return function(caseQty, unitsPerCase) {
|
||||
if (caseQty === "" || !isFinite(caseQty) || !isFinite(unitsPerCase))
|
||||
return "";
|
||||
|
||||
return caseQty * unitsPerCase;
|
||||
}
|
||||
});
|
||||
};
|
||||
}
|
||||
]);
|
||||
|
||||
})();
|
||||
Reference in New Issue
Block a user