tap/app/views/users/edit_dagschotel.html.haml

16 lines
432 B
Text
Raw Normal View History

2015-09-19 11:05:43 +02:00
= content_for :title, "Choose new Dagschotel"
= render 'products/index'
2016-03-02 18:51:04 +01:00
= javascript_tag do
var id = $("#remove_dagschotel").find(".btn");
default_value=id.val();
id.hover(function () {
$(this).toggleClass("btn-success");
$(this).toggleClass("btn-danger");
$(this).val("Remove dagschotel");
}, function(){
$(this).val(default_value);
$(this).toggleClass("btn-success");
$(this).toggleClass("btn-danger");
});