Permalink
Browse files

tut

  • Loading branch information...
1 parent 6573861 commit 4db9f34166befdafe8aaf39a009df180b28afbea @krav krav committed Nov 19, 2012
Showing with 7 additions and 5 deletions.
  1. +3 −2 web/js/hangover.js
  2. +1 −1 web/lib/lamt
  3. +3 −2 web/tmpl/tracks.ejs
View
@@ -50,7 +50,6 @@ $.Model('db', {
$.Controller("search", {
init : function(el) {
- console.log("ef");
},
"click": function(el) {
var query={q: $('#query', el.parent()).val()};
@@ -62,13 +61,15 @@ $.Controller("search", {
return;
}
fields = sort_fields(r.fields);
- console.log(r);
$("#searchresult").html($.View("tmpl/tracks.ejs", {fields: fields, results: r.result}));
});
return(false);
}
});
+// search egen funksjon, page som aregument
+// bind knapper search pluss value
+
$.route(":page/:action/:id");
$.route(":page", {page: "home"});
Submodule lamt updated from 6a2772 to 1c6f6e
View
@@ -18,8 +18,9 @@
<div class="pagination">
<ul>
- <li><a href="#">Prev</a></li>
- <li class="active"><a href="#">1</a></li>
+ <li class="active">
+ <a href="/#!database?q=..&page=1">1</a>
+ </li>
<li><a href="#">2</a></li>
<li><a href="#">3</a></li>
<li><a href="#">Next</a></li>

0 comments on commit 4db9f34

Please sign in to comment.