very rough add, allows rough comparison

This commit is contained in:
Ben West
2015-11-17 03:08:55 -08:00
parent ac9a7005c4
commit fcbfb26457
2 changed files with 8 additions and 1 deletions
+2 -1
View File
@@ -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};
+6
View File
@@ -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( );
}