git://git.onelab.eu
/
unfold.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Onelab opening last minute changes
[unfold.git]
/
portal
/
templates
/
registration_view.html
diff --git
a/portal/templates/registration_view.html
b/portal/templates/registration_view.html
index
3cdbecf
..
654f79d
100644
(file)
--- a/
portal/templates/registration_view.html
+++ b/
portal/templates/registration_view.html
@@
-487,6
+487,18
@@
jQuery(document).ready(function(){
{value:"",label:"No authority found !!!"}
{% endif %}
];
{value:"",label:"No authority found !!!"}
{% endif %}
];
+ // sorting the list
+ availableTags.sort(function(a,b){
+ var nameA=a.value.toLowerCase(), nameB=b.value.toLowerCase();
+ if (nameA < nameB) {
+ return -1;
+ }
+ if (nameA > nameB) {
+ return 1;
+ }
+ return 0;
+ });
+ // auto-complete the form
jQuery( "#authority_hrn" ).autocomplete({
source: availableTags,
minLength: 0,
jQuery( "#authority_hrn" ).autocomplete({
source: availableTags,
minLength: 0,