Skip to content

Commit eb81cce

Browse files
author
Dave Newman
committed
fix current user javascript bug
1 parent b0bb4f4 commit eb81cce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/views/shared/_current_user_js.html.haml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
window.current_user = "#{@current_user ? @current_user.username : "null"}";
33
function show_hide_by_current_user(){
44
if(window.current_user != null){
5-
$('.show-for-user[data-user="' + window.current_user + '"').show();
6-
$('.hide-for-user[data-user="' + window.current_user + '"').hide();
7-
$('.remove-for-user[data-user="' + window.current_user + '"').remove();
5+
$('.show-for-user[data-user="' + window.current_user + '"]').show();
6+
$('.hide-for-user[data-user="' + window.current_user + '"]').hide();
7+
$('.remove-for-user[data-user="' + window.current_user + '"]').remove();
88
}
99
}
1010
$(function(){

0 commit comments

Comments
 (0)