We got nominated! Help us out and vote for GitHub as Best Bootstrapped Startup of 2008. (You can vote once a day.) [ hide ]

public
Description: A Rails app that uses voting to identify pain points.
Clone URL: git://github.com/btakita/pain-point.git
Stopping event bubbling to a href attribute when up and down vote links 
are clicked.
btakita (author)
Tue May 06 01:34:17 -0700 2008
commit  e5cd1d3080283e3492e35fdde33eb8be6676d533
tree    8cff06fbe390957e790c9bb05e2f44684c7eac89
parent  20158aebf512fbfee585e32a09b26be0df77e300
...
1
 
2
3
4
...
46
47
48
 
49
50
51
 
52
53
54
55
56
 
57
...
 
1
2
3
4
...
46
47
48
49
50
51
52
53
54
55
56
 
57
58
59
0
@@ -1,4 +1,4 @@
0
-(function(window) {
0
+(function() {
0
   var PainPointViewBuilder = function PainPointViewBuilder(pain_point) {
0
     this.pain_point = pain_point;
0
     XmlBuilder.apply(this);
0
@@ -46,10 +46,12 @@
0
 
0
     view.find("a.up").click(function() {
0
       pain_point.up_vote(view.refresh_links);
0
+ return false;
0
     });
0
     view.find("a.down").click(function() {
0
       pain_point.down_vote(view.refresh_links);
0
+ return false;
0
     });
0
     return view;
0
   };
0
-})(window);
0
\ No newline at end of file
0
+})();
0
\ No newline at end of file

Comments

    No one has commented yet.