From: Andrew Gerrand Date: Tue, 13 Jul 2010 00:21:08 +0000 (+1000) Subject: dashboard: use jQuery Autocomplete plugin from Google AJAX Libs API X-Git-Tag: weekly.2010-07-14~22 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=1930cd5d38d908606112c77b3bb3c5f8524570b0;p=gostls13.git dashboard: use jQuery Autocomplete plugin from Google AJAX Libs API R=rsc CC=golang-dev https://golang.org/cl/1677053 --- 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 @@ + - -
@@ -38,8 +38,10 @@ var cats = [ {% endfor %} ]; -$('#tags').autocomplete(tags); -$('#cats').autocomplete(cats); +google.setOnLoadCallback(function() { + $('#tags').autocomplete({source:tags}); + $('#cats').autocomplete({source:cats}); +});