summaryrefslogtreecommitdiff
path: root/js/model
diff options
context:
space:
mode:
Diffstat (limited to 'js/model')
-rw-r--r--js/model/packages.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/js/model/packages.js b/js/model/packages.js
index bea1280..39e6a8d 100644
--- a/js/model/packages.js
+++ b/js/model/packages.js
@@ -28,6 +28,13 @@
});
};
+ packages.PackagesByName = function(name) {
+ return m.request({
+ method: "GET",
+ url: "/package/".concat(name).concat(".json")
+ });
+ };
+
packages.Sorter = (function() {
function Sorter(field, isDescending) {
this.field = field;