mirror of
https://github.com/golang/go
synced 2024-11-24 22:10:02 -07:00
dashboard: use jQuery Autocomplete plugin from Google AJAX Libs API
R=rsc CC=golang-dev https://golang.org/cl/1677053
This commit is contained in:
parent
18d78dd7b1
commit
1930cd5d38
@ -1,11 +1,11 @@
|
|||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
|
<link href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css" rel="stylesheet" type="text/css"/>
|
||||||
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
|
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
|
||||||
<script>
|
<script>
|
||||||
google.load("jquery", "1");
|
google.load("jquery", "1");
|
||||||
|
google.load("jqueryui", "1.8.2");
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript" src="/static/jquery.autocomplete.min.js"></script>
|
|
||||||
<link rel="stylesheet" type="text/css" href="/static/jquery.autocomplete.css" />
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<form action="/project/edit?orig_name={{p.name}}" method="POST">
|
<form action="/project/edit?orig_name={{p.name}}" method="POST">
|
||||||
@ -38,8 +38,10 @@ var cats = [
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
];
|
];
|
||||||
|
|
||||||
$('#tags').autocomplete(tags);
|
google.setOnLoadCallback(function() {
|
||||||
$('#cats').autocomplete(cats);
|
$('#tags').autocomplete({source:tags});
|
||||||
|
$('#cats').autocomplete({source:cats});
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
Reference in New Issue
Block a user