diff options
author | Andrew Gerrand <adg@golang.org> | 2010-07-13 10:21:08 +1000 |
---|---|---|
committer | Andrew Gerrand <adg@golang.org> | 2010-07-13 10:21:08 +1000 |
commit | 1930cd5d38d908606112c77b3bb3c5f8524570b0 (patch) | |
tree | 9d4f08f0954485cf851fa246a538f8b5f348eee0 | |
parent | 18d78dd7b1f97e56521c8a37ec9f6996f346e7f5 (diff) | |
download | go-1930cd5d38d908606112c77b3bb3c5f8524570b0.tar.gz go-1930cd5d38d908606112c77b3bb3c5f8524570b0.zip |
dashboard: use jQuery Autocomplete plugin from Google AJAX Libs API
R=rsc
CC=golang-dev
https://golang.org/cl/1677053
-rw-r--r-- | misc/dashboard/godashboard/project-edit.html | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/misc/dashboard/godashboard/project-edit.html b/misc/dashboard/godashboard/project-edit.html index 5f1ca3b118..ce18fb3fbd 100644 --- a/misc/dashboard/godashboard/project-edit.html +++ b/misc/dashboard/godashboard/project-edit.html @@ -1,11 +1,11 @@ <html> <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> google.load("jquery", "1"); +google.load("jqueryui", "1.8.2"); </script> -<script type="text/javascript" src="/static/jquery.autocomplete.min.js"></script> -<link rel="stylesheet" type="text/css" href="/static/jquery.autocomplete.css" /> </head> <body> <form action="/project/edit?orig_name={{p.name}}" method="POST"> @@ -38,8 +38,10 @@ var cats = [ {% endfor %} ]; -$('#tags').autocomplete(tags); -$('#cats').autocomplete(cats); +google.setOnLoadCallback(function() { + $('#tags').autocomplete({source:tags}); + $('#cats').autocomplete({source:cats}); +}); </script> </body> </html> |