major refactoring of javascripts
This commit is contained in:
2
app/views/favorites/create.js.erb
Normal file
2
app/views/favorites/create.js.erb
Normal file
@@ -0,0 +1,2 @@
|
||||
$("a#add-to-favorites").hide();
|
||||
$("a#remove-from-favorites").show();
|
||||
2
app/views/favorites/destroy.js.erb
Normal file
2
app/views/favorites/destroy.js.erb
Normal file
@@ -0,0 +1,2 @@
|
||||
$("a#add-to-favorites").show();
|
||||
$("a#remove-from-favorites").hide();
|
||||
Reference in New Issue
Block a user