first take
[ReadingsJQM.git] / js / app / AjaxList.js
diff --git a/js/app/AjaxList.js b/js/app/AjaxList.js
new file mode 100644 (file)
index 0000000..d2d0897
--- /dev/null
@@ -0,0 +1,25 @@
+(function() {
+
+  Readings.TagList = (function() {
+
+    TagList.prototype.defaults = null;
+
+    function TagList(list, category, options) {
+      this.category = category;
+      this.options = $.extend(this.defaults, options);
+    }
+
+    TagList.prototype.load = function() {
+      return $.ajax({
+        url: Readings.config.get('wlurl') + ("/api/" + this.category),
+        success: function() {
+          return true;
+        }
+      });
+    };
+
+    return TagList;
+
+  })();
+
+}).call(this);