fix for close
This commit is contained in:
parent
d5285b82ff
commit
f19aaf208c
|
|
@ -12,3 +12,7 @@
|
|||
//
|
||||
//= require rails-ujs
|
||||
// require turbolinks
|
||||
|
||||
function closeDiv(div_id) {
|
||||
$(div_id).html("");
|
||||
};
|
||||
|
|
|
|||
|
|
@ -58,10 +58,7 @@
|
|||
<%= javascript_include_tag 'bootstrap-editable' %>
|
||||
<script>
|
||||
$.fn.editable.defaults.mode = 'popup';
|
||||
$(document).ready(function () {
|
||||
function closeDiv(div_id) {
|
||||
$(div_id).html("");
|
||||
}
|
||||
$(document).ready(function () {
|
||||
$('.xedit').editable({
|
||||
success: function (response, newValue) {
|
||||
if (!response.success)
|
||||
|
|
|
|||
Loading…
Reference in New Issue