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
/
Controller.js
diff --git
a/js/app/Controller.js
b/js/app/Controller.js
index
9222b13
..
e3ac532
100644
(file)
--- a/
js/app/Controller.js
+++ b/
js/app/Controller.js
@@
-1,12
+1,14
@@
+// Generated by CoffeeScript 1.3.3
(function() {
(function() {
- Readings.category_list = function(list) {
- var cat, labelname, _ref;
+ $.fn.Readings.CategoryList = function() {
+ var cat, labelname, list, _ref;
+ list = $(this);
list.empty();
_ref = Readings.config.get('categories');
for (cat in _ref) {
labelname = _ref[cat];
list.empty();
_ref = Readings.config.get('categories');
for (cat in _ref) {
labelname = _ref[cat];
- list.append("<li><a href=\"
#page-tags?category=
" + cat + "\">" + labelname + "</a></li>");
+ list.append("<li><a href=\"
tags.html?category=" + cat + "\" data-category=\"
" + cat + "\">" + labelname + "</a></li>");
}
return list.listview('refresh');
};
}
return list.listview('refresh');
};