mirror of
https://github.com/moparisthebest/wallabag
synced 2024-11-27 11:22:17 -05:00
can't close search popup with the cross picture #613
This commit is contained in:
parent
5fe1948097
commit
3945335f39
@ -12,4 +12,5 @@
|
|||||||
<script src="{{ poche_url }}themes/{{theme}}/js/jquery.cookie.js"></script>
|
<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/{{theme}}/js/init.js"></script>
|
||||||
<script src="{{ poche_url }}themes/default/js/saveLink.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>
|
<script src="{{ poche_url }}themes/{{theme}}/js/closeMessage.js"></script>
|
||||||
|
@ -5,17 +5,3 @@
|
|||||||
<input id="submit-search" type="submit" value="{% trans "Search" %} !"></input>
|
<input id="submit-search" type="submit" value="{% trans "Search" %} !"></input>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</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>
|
|
@ -11,3 +11,4 @@
|
|||||||
<script src="{{ poche_url }}themes/default/js/autoClose.js"></script>
|
<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/closeMessage.js"></script>
|
||||||
<script src="{{ poche_url }}themes/default/js/saveLink.js"></script>
|
<script src="{{ poche_url }}themes/default/js/saveLink.js"></script>
|
||||||
|
<script src="{{ poche_url }}themes/default/js/popupForm.js"></script>
|
20
themes/default/js/popupForm.js
Normal file
20
themes/default/js/popupForm.js
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
$(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();
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
});
|
Loading…
Reference in New Issue
Block a user