mirror of
https://github.com/bckelley/cgm-remote-monitor.git
synced 2026-08-24 03:14:12 -05:00
very rough add, allows rough comparison
This commit is contained in:
@@ -142,8 +142,9 @@
|
||||
} );
|
||||
|
||||
$('window').on('hashchange', route_add);
|
||||
$('#menu').on('click', 'A', route_add);
|
||||
$('#menu').on('click', 'A.add-button', route_add);
|
||||
function route_add (ev) {
|
||||
pools.add_new( );
|
||||
console.log('Add', ev.target, arguments);
|
||||
}
|
||||
var compare = { toolbar: toolbar, timeline: timeline, control: control};
|
||||
|
||||
@@ -171,6 +171,12 @@ function manager (view, data, opts) {
|
||||
}
|
||||
}
|
||||
|
||||
function add_new ( ) {
|
||||
var item = make({ });
|
||||
pools.push(item);
|
||||
}
|
||||
|
||||
manage.add_new = add_new;
|
||||
|
||||
return init( );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user