Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

tut

  • Loading branch information...
commit 4db9f34166befdafe8aaf39a009df180b28afbea 1 parent 6573861
Harry Godzilla Simcoe Imhotep krav authored
5 web/js/hangover.js
@@ -50,7 +50,6 @@ $.Model('db', {
50 50
51 51 $.Controller("search", {
52 52 init : function(el) {
53   - console.log("ef");
54 53 },
55 54 "click": function(el) {
56 55 var query={q: $('#query', el.parent()).val()};
@@ -62,13 +61,15 @@ $.Controller("search", {
62 61 return;
63 62 }
64 63 fields = sort_fields(r.fields);
65   - console.log(r);
66 64 $("#searchresult").html($.View("tmpl/tracks.ejs", {fields: fields, results: r.result}));
67 65 });
68 66 return(false);
69 67 }
70 68 });
71 69
  70 +// search egen funksjon, page som aregument
  71 +// bind knapper search pluss value
  72 +
72 73 $.route(":page/:action/:id");
73 74 $.route(":page", {page: "home"});
74 75
2  web/lib/lamt
... ... @@ -1 +1 @@
1   -Subproject commit 6a27728f467734415db8017ae5b2e43a00da09d4
  1 +Subproject commit 1c6f6e3539d45d5064a62cf153579492bcdccff7
5 web/tmpl/tracks.ejs
@@ -18,8 +18,9 @@
18 18
19 19 <div class="pagination">
20 20 <ul>
21   - <li><a href="#">Prev</a></li>
22   - <li class="active"><a href="#">1</a></li>
  21 + <li class="active">
  22 + <a href="/#!database?q=..&page=1">1</a>
  23 + </li>
23 24 <li><a href="#">2</a></li>
24 25 <li><a href="#">3</a></li>
25 26 <li><a href="#">Next</a></li>

0 comments on commit 4db9f34

Please sign in to comment.
Something went wrong with that request. Please try again.