d2d08976632610400ed8b464e3b03e061d9a2f27
[ReadingsJQM.git] / js / app / AjaxList.js
1 (function() {
2
3   Readings.TagList = (function() {
4
5     TagList.prototype.defaults = null;
6
7     function TagList(list, category, options) {
8       this.category = category;
9       this.options = $.extend(this.defaults, options);
10     }
11
12     TagList.prototype.load = function() {
13       return $.ajax({
14         url: Readings.config.get('wlurl') + ("/api/" + this.category),
15         success: function() {
16           return true;
17         }
18       });
19     };
20
21     return TagList;
22
23   })();
24
25 }).call(this);