self.table_update = function () {
if ( ! self.username || ! self.cpe.table_name ) return;
self.message.table = self.username + ' loading from ' + self.cpe.table_name;
- self.r.table.get({ username: self.username, table: self.cpe.table_name, limit: self.cpe.limit }, function(table) {
+ self.r.table.get({ username: self.username, table: self.cpe.table_name, limit: self.cpe_limit }, function(table) {
$log.info( 'table', table );
self.cpe.table = table;
self.message.table = null;
self.LDAP = null;
self.selected_username = null;
self.gnuplot = {};
- self.cpe = { limit: 1 };
+ self.cpe = {};
+ self.cpe_limit = 1;
};
self.message = {};
});
self.clear();
- self.cpe_limit = self.cpe.limit;
self.$watch('cpe_limit', function() {
- $log.info( 'limit', self.cpe.limit = self.cpe_limit );
+ $log.info( 'cpe_limit', self.cpe_limit );
self.table_update();
});
float: right;
}
+li > tt {
+ font-weight: bold;
+}
</style>
<h2><tt>{{selected_username}}</tt> LDAP entry</h2>
<ul ng:show="LDAP">
- <li ng:repeat="c in keys(LDAP)">{{c}} <b>{{LDAP[0][c]}}</b></li>
+ <li ng:repeat="c in keys(LDAP)"><tt>{{c}}</tt> {{LDAP[0][c]}}</li>
</ul>
<div class="panel_right" ng:show="cpe.table">