X-Git-Url: https://git.mdrn.pl/ReadingsJQM.git/blobdiff_plain/b2dcc4cec0edb145ed13c26537c94b593691954f..bdd9d26375a6489d7ff8eac944e29b0789f04a20:/js/app/Controller.coffee diff --git a/js/app/Controller.coffee b/js/app/Controller.coffee index b5db24c..8ab96ed 100644 --- a/js/app/Controller.coffee +++ b/js/app/Controller.coffee @@ -1,7 +1,15 @@ # main controller -Readings.category_list = (list) -> +$.fn.Readings.CategoryList = -> + list = $(this) list.empty() for cat, labelname of Readings.config.get 'categories' - list.append "
  • #{labelname}
  • " - list.listview 'refresh' \ No newline at end of file + list.append "
  • #{labelname}
  • " + # $('a', list).on 'tap', (ev) -> + # ev.preventDefault() + # $i = $(this) + # category = $i.data 'category' + # false +# $.mobile.changePage '#page-tags', +# category: category + list.listview 'refresh'