Permalink
Browse files

Search Auto complete on partie

  • Loading branch information...
1 parent db9f4c5 commit 5e89c1d9f9c27ab5be20eb901f4159533186b88d @MeirKriheli MeirKriheli committed Mar 12, 2013
Binary file not shown.
@@ -2,8 +2,8 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2013-02-27 01:43+0200\n"
-"PO-Revision-Date: 2013-02-27 01:54+0200\n"
+"POT-Creation-Date: 2013-03-12 14:40+0200\n"
+"PO-Revision-Date: 2013-03-12 14:40+0200\n"
"Last-Translator: Ofri Raviv <ofri.raviv@gmail.com>\n"
"Language-Team: \n"
"Language: \n"
@@ -76,10 +76,14 @@ msgid "Members"
msgstr \"כים"
#: static/js/ok-search.js:47
+msgid "Parties"
+msgstr "סיעות"
+
+#: static/js/ok-search.js:56
msgid "Tags"
msgstr "תגים"
-#: static/js/ok-search.js:56
+#: static/js/ok-search.js:65
msgid "Committees"
msgstr "ועדות"
View
@@ -42,6 +42,15 @@
return el;
}
},
+ party: {
+ url: '/api/v2/party/',
+ title: gettext('Parties'),
+ render: function(item) {
+ var el = $('<li class="search-party"><a></a></li>');
+ el.find('a').attr('href', item.absolute_url).text(item.name);
+ return el;
+ }
+ },
tag: {
url: '/api/v2/tag/',
title: gettext('Tags'),
View
@@ -206,7 +206,7 @@
<script src="{% static "js/ok-toggle.js" %}"></script>
<script src="{% static "js/ok-more.js" %}"></script>
- <script src="{% static "js/ok-search.js" %}"></script>
+ <script src="{% static "js/ok-search.js" %}?v=2"></script>
<!-- end JS -->
<script>
$(function() {

0 comments on commit 5e89c1d

Please sign in to comment.