projects
/
APKPM.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
5428375
)
auto-select single result from CRM
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sun, 10 Jul 2011 13:09:21 +0000
(15:09 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sun, 10 Jul 2011 13:09:21 +0000
(15:09 +0200)
public/user.html
patch
|
blob
|
history
diff --git
a/public/user.html
b/public/user.html
index
530353c
..
96d44cc
100644
(file)
--- a/
public/user.html
+++ b/
public/user.html
@@
-15,6
+15,10
@@
self.r.CRM_search.query({username: username}, function(CRM) {
self.CRM = CRM;
$log.info( 'CRM', CRM )
+ if ( CRM.length == 1 ) {
+ self.selected_username = CRM[0].USERNAME;
+ $log.info( 'auto-selected', self.selected_username );
+ }
});
};