fnp
/
wl-mobile.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
nicer spinner animation, some cleaning
[wl-mobile.git]
/
assets
/
www
/
js
/
main.js
diff --git
a/assets/www/js/main.js
b/assets/www/js/main.js
index
2daacf5
..
f3a1eee
100644
(file)
--- a/
assets/www/js/main.js
+++ b/
assets/www/js/main.js
@@
-3,10
+3,13
@@
* Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
*/
* Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
*/
-var VERSION = '1.0';
var WL = 'http://www.wolnelektury.pl';
var WL = 'http://www.wolnelektury.pl';
+// disable debugging
+console.log = function(text) {};
+
+
function onLoad() {
console.log('onLoad');
document.addEventListener("deviceready", onDeviceReady, false);
function onLoad() {
console.log('onLoad');
document.addEventListener("deviceready", onDeviceReady, false);
@@
-23,8
+26,10
@@
function onDeviceReady() {
History.init(function() {
console.log('after history.init');
View.init(function() {
History.init(function() {
console.log('after history.init');
View.init(function() {
- Catalogue.sync(function() {
- Catalogue.updateLocal();
+ Menu.init(function() {
+ Catalogue.sync(function() {
+ Catalogue.updateLocal();
+ }, error);
}, error);
}, error);
}, error);
}, error);
}, error);
}, error);
@@
-58,4
+63,4
@@
var prettySize = function(size) {
return Math.round(size*10)/10 + ' ' + unit;
}
return Math.round(size) + ' ' + unit;
return Math.round(size*10)/10 + ' ' + unit;
}
return Math.round(size) + ' ' + unit;
-}
+}
;