final/app/views/blogs/upload_img.js.haml

8 lines
252 B
Plaintext
Executable File

- if @result[:status]
:plain
var old_val = $("##{@result[:text_id]}").val();
$("##{@result[:text_id]}").val(old_val + "#{@result[:message]}");
$('#upload_modal').modal('hide');
- else
:plain
$('#error').text("#{@result[:message]}");