only populate search field when logged in
This commit is contained in:
parent
def4cebcdf
commit
8eedb855cb
|
@ -1,5 +1,5 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<html {% if user.is_authenticated %}class="loggedIn"{% endif %}>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
|
||||
<link rel="stylesheet" media="screen" type="text/css"
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
jQuery(document).ready(function($) {
|
||||
|
||||
if(!$("html").hasClass("loggedIn"))
|
||||
return;
|
||||
|
||||
var search_input = $("div.search input.autocomplete");
|
||||
var selected_item = [];
|
||||
var selection = false;
|
||||
|
|
Loading…
Reference in New Issue