first take
[ReadingsJQM.git] / js / app / app.js
diff --git a/js/app/app.js b/js/app/app.js
new file mode 100644 (file)
index 0000000..79aa20c
--- /dev/null
@@ -0,0 +1,21 @@
+(function() {
+
+  window.Readings = {};
+
+  $.fn.Readings = {};
+
+  $(document).on('pageinit', function(ev) {
+    Readings.config = new Readings.Config({
+      wlurl: 'http://readings.local',
+      categories: {
+        'authors': 'autor',
+        'epochs': 'epoka',
+        'genres': 'gatunek',
+        'kinds': 'rodzaj',
+        'themes': 'motyw'
+      }
+    });
+    return Readings.category_list($('#list-categories'));
+  });
+
+}).call(this);