' )
tr.append $( '| ' ).css 'width', '20px'
- tr.append $( ' | ' ).text name
+ tr.append $( ' | ' ).attr( 'class', 'key' ).text name
inp = $( '' ).attr( 'type', 'password' ).attr 'id', "#{ name }"
tr.append $( ' | ' ).text( ' :' ).append inp
table.append tr
@@ -45,13 +52,17 @@ fOnLoad = () ->
command: 'get_event_pollers'
$.post( '/usercommand', obj )
.done ( data ) ->
+ try
+ oEps = JSON.parse data.message
+ catch err
+ console.error 'ERROR: non-object received from server: ' + data.message
+ return
+
fAppendEvents = ( id, events ) ->
- try
- arrNames = JSON.parse events
- $( '#select_event' ).append $( ' |