From f19aaf208cfe7f2057b85d242baf3784e306da1f Mon Sep 17 00:00:00 2001 From: Adrian Hinz Date: Mon, 23 Apr 2018 15:23:27 +0200 Subject: [PATCH] fix for close --- app/assets/javascripts/application.js | 4 ++++ app/views/ps_admin/product/partials/_show.html.erb | 5 +---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/assets/javascripts/application.js b/app/assets/javascripts/application.js index 8456459..48236f8 100644 --- a/app/assets/javascripts/application.js +++ b/app/assets/javascripts/application.js @@ -12,3 +12,7 @@ // //= require rails-ujs // require turbolinks + +function closeDiv(div_id) { + $(div_id).html(""); +}; diff --git a/app/views/ps_admin/product/partials/_show.html.erb b/app/views/ps_admin/product/partials/_show.html.erb index e3e88b1..921d2d7 100644 --- a/app/views/ps_admin/product/partials/_show.html.erb +++ b/app/views/ps_admin/product/partials/_show.html.erb @@ -58,10 +58,7 @@ <%= javascript_include_tag 'bootstrap-editable' %>