fnp
/
ReadingsJQM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some fixes for catalogue loading
[ReadingsJQM.git]
/
js
/
app
/
app.js
diff --git
a/js/app/app.js
b/js/app/app.js
index
01d1f4a
..
b95b86e
100644
(file)
--- a/
js/app/app.js
+++ b/
js/app/app.js
@@
-1,4
+1,3
@@
-// Generated by CoffeeScript 1.3.3
(function() {
var rcategory, rtag, rtagid;
(function() {
var rcategory, rtag, rtagid;
@@
-17,11
+16,10
@@
};
Readings.init = function() {
};
Readings.init = function() {
- if (Readings.initialized != null) {
- return;
- }
+ if (Readings.initialized != null) return;
Readings.config = new Readings.Config({
Readings.config = new Readings.Config({
- wlurl: 'http://readings.local',
+ wlurl: 'http://dev.wolnelektury.pl',
+ initdburl: 'http://dev.wolnelektury.pl/media/api/mobile/initial/initial.sql',
categories: {
'author': 'autor',
'epoch': 'epoka',
categories: {
'author': 'autor',
'epoch': 'epoka',
@@
-71,9
+69,7
@@
var tag, tag_id, tag_id_m,
_this = this;
tag_id_m = rtagid.exec($(this).attr('data-url'));
var tag, tag_id, tag_id_m,
_this = this;
tag_id_m = rtagid.exec($(this).attr('data-url'));
- if (tag_id_m != null) {
- tag_id = tag_id_m[1];
- }
+ if (tag_id_m != null) tag_id = tag_id_m[1];
return tag = Readings.catalogue.withTag(tag_id, function(tag) {
return $(_this).Readings('list', {
fetch: function(cb) {
return tag = Readings.catalogue.withTag(tag_id, function(tag) {
return $(_this).Readings('list', {
fetch: function(cb) {