X-Git-Url: https://git.mdrn.pl/ReadingsJQM.git/blobdiff_plain/c956fba7332f45e9abab07b2b8ac417b0f6514c8..45f8b33043d9aad64b1f89906323bc477efda0f3:/js/app/TagList.js?ds=inline
diff --git a/js/app/TagList.js b/js/app/TagList.js
deleted file mode 100644
index cecadcf..0000000
--- a/js/app/TagList.js
+++ /dev/null
@@ -1,47 +0,0 @@
-// Generated by CoffeeScript 1.3.3
-(function() {
-
- Readings.Tag = (function() {
-
- function Tag(record) {
- this.href = record.href;
- this.name = record.name;
- this.slug = $.grep(this.href.split('/'), function(e) {
- return e !== "";
- });
- }
-
- Tag.prototype.render = function() {
- return "
" + this.name + "";
- };
-
- return Tag;
-
- })();
-
- $.fn.Readings.TagList = function(category) {
- return this.each(function() {
- var list;
- $('[data-role=header] h1').text(Readings.config.get('categories')[category]);
- list = $('[data-role=listview]', this);
- return $.ajax({
- url: Readings.config.get('wlurl') + ("/api/" + category),
- contentType: "json",
- success: function(data) {
- var t, tags, _i, _len;
- console.log(data);
- tags = $.map(data, function(rec) {
- return new Readings.Tag(rec);
- });
- list.empty();
- for (_i = 0, _len = tags.length; _i < _len; _i++) {
- t = tags[_i];
- list.append(t.render());
- }
- return list.listview('refresh');
- }
- });
- });
- };
-
-}).call(this);