From cf7ed2625456a5e619f68408f8ebfe78f443a672 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Asbj=C3=B8rn=20Sloth=20T=C3=B8nnesen?= Date: Tue, 10 Jul 2012 19:51:16 +0000 Subject: upgrade to bootstrap 2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Asbjørn Sloth Tønnesen --- web/js/labitrack.d/46-edit.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'web/js/labitrack.d/46-edit.js') diff --git a/web/js/labitrack.d/46-edit.js b/web/js/labitrack.d/46-edit.js index c7039b0..ce8ac1c 100644 --- a/web/js/labitrack.d/46-edit.js +++ b/web/js/labitrack.d/46-edit.js @@ -1,10 +1,13 @@ (function(){ - function on_submit(label, o) + function on_submit(label, o, print) { o.save(undef, {success: function() { label.set_data(o.toJSON()); Backbone.history.navigate('/view/'+o.id, true); }}); + if (print) { + label.print(); + } } function success(o) -- cgit v1.2.1