Skip to content

Commit 31b4b44

Browse files
committed
prevent default behavior in button
1 parent 3b06e96 commit 31b4b44

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

TODO.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@
1010

1111
* Add Fluid support `if(window.fluid) window.fluid.dockBadge = formatted;`
1212
* Add Fluid support `if(window.fluid) window.fluid.showGrowlNotification({title: prompt});`
13-
* Add title `window.document.title = "Flow" + " (" + formatted + ")";`
14-
* Add sounds for maximum coolness
1513
* Rid-off Class abstraction, refactor code using modules and mixins or just functions
1614
* Make mediator take options from URL
17-
* Markup should be generated in a view (not in the view itself but in an associated template
18-
* Jasmine coping well with requirejs
1915
* A view should rather be an Interaction => Input handling, Presentation (templates and rendering and sound)

app/javascripts/src/views/chronometer.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,9 @@ define(['jquery', 'views/base', 'util/all'], function($, Base, Util) {
5252

5353
installHandlers: function(){
5454
this._super();
55-
$(document).on('click','.button', function(){
55+
$(document).on('click','.button', function(e){
5656
$(this).trigger('flow.switch');
57+
e.preventDefault();
5758
});
5859
},
5960

0 commit comments

Comments
 (0)