-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Corrected all tests in plots2_spec.js
- Loading branch information
1 parent
9d3d2a7
commit 6391c8d
Showing
3 changed files
with
44 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,6 @@ | ||
<ul class="btn-group"> | ||
|
||
<li rel="tooltip" title="Helpful? Like it and get updates!" class="btn btn-default btn-sm btn-like" node-id="1" id="like-button-1"><span id="like-star-1" class="fa fa-star-o"></span> <span id="like-count-1">0</span></li> | ||
<li rel="tooltip" title="Helpful? Like it and get updates!" class="btn btn-default btn-sm btn-like" node-id="1" id="like-button-1"><span id="like-star-1" class="fa fa-star-o"></span> <span id="like-count-1">0</span></li> | ||
|
||
</ul> | ||
|
||
<script> | ||
jQuery(document).ready(function() { | ||
// 304 cached response yields no data to insert, which is not useful | ||
// jQuery.ajaxSetup({ | ||
// cache: false | ||
// }); | ||
|
||
// grab the like count for this node; "/likes/node/11278/count" | ||
// jQuery.getJSON("<%= like_count_path(node) %>", function (json) { | ||
// // push like count into the Like button placeholder | ||
// $('#like-count-<%= node.id %>').html(json); | ||
// }); | ||
|
||
// <% if current_user %> | ||
$('#like-button-1').on('click', clicknotliked); | ||
// <% end %> | ||
}) | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters