User profile editing and password

This commit is contained in:
2016-09-26 11:13:59 -04:00
parent 6789c1b3b5
commit 75b7c02979
54 changed files with 373 additions and 209 deletions
@@ -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) {
}
})();
+5 -3
View File
@@ -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;
}
});
};
}
]);
})();