diff --git a/app/views/admin/ad_images/_form.html.erb b/app/views/admin/ad_images/_form.html.erb index e6fc794..f128ae4 100644 --- a/app/views/admin/ad_images/_form.html.erb +++ b/app/views/admin/ad_images/_form.html.erb @@ -53,7 +53,7 @@ <% if @ad_image.file.file %> <%= image_tag @ad_image.file.url %> <% else %> - + <% end %>
@@ -116,7 +116,7 @@ <% if @ad_image.video_snapshot.file %> <%= image_tag @ad_image.video_snapshot.url %> <% else %> - + <% end %> @@ -295,11 +295,11 @@ $('#ad_image_out_link').on('paste', function(e){ var pastedData = e.originalEvent.clipboardData.getData('text'); var _this = $(this); - pastedData = pastedData.replace(new RegExp('^http(s|)://' + window.location.host), '') + pastedData = pastedData.replace(new RegExp('^http(s|)://' + window.location.host), ''); window.setTimeout(function(){ _this.val(pastedData); }, 0); - }) + }); })