<script src="{{ poche_url }}themes/{{theme}}/js/jquery.cookie.js"></script>
<script src="{{ poche_url }}themes/{{theme}}/js/init.js"></script>
<script src="{{ poche_url }}themes/default/js/saveLink.js"></script>
+ <script src="{{ poche_url }}themes/default/js/popupForm.js"></script>
<script src="{{ poche_url }}themes/{{theme}}/js/closeMessage.js"></script>
-<div id="search-form" class="messages info">
+<div id="search-form" class="messages info">
<form method="get" action="index.php">
- <input type="hidden" name="view" value="search"></input>
+ <input type="hidden" name="view" value="search"></input>
<label><a href="javascript: void(null);" id="search-form-close">X</a>{% trans "Search" %}</label> : <input type="text" name="search" />
- <input id="submit-search" type="submit" value="{% trans "Search" %} !"></input>
+ <input id="submit-search" type="submit" value="{% trans "Search" %} !"></input>
</form>
-</div>
-<script type="text/javascript">
- $(document).ready(function() {
-
- $("#search-form").hide();
-
- $("#search").click(function(){
- $("#search-form").toggle();
- $("#search").toggleClass("current");
- $("#search-arrow").toggleClass("arrow-down");
- });
-
-
- });
-</script>
\ No newline at end of file
+</div>
\ No newline at end of file
<script src="{{ poche_url }}themes/default/js/autoClose.js"></script>
<script src="{{ poche_url }}themes/default/js/closeMessage.js"></script>
<script src="{{ poche_url }}themes/default/js/saveLink.js"></script>
+ <script src="{{ poche_url }}themes/default/js/popupForm.js"></script>
\ No newline at end of file
--- /dev/null
+$(document).ready(function() {
+
+ $("#search-form").hide();
+
+ function closeSearch() {
+ $("#search-form").toggle();
+ $("#search").toggleClass("current");
+ $("#search-arrow").toggleClass("arrow-down");
+ }
+
+ $("#search").click(function(){
+ closeSearch();
+ });
+
+ $("#search-form-close").click(function(){
+ closeSearch();
+ });
+
+
+});
\ No newline at end of file