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