diff --git a/app/views/admin/sites/preference.html.erb b/app/views/admin/sites/preference.html.erb index d016e0a2..4115e2ec 100644 --- a/app/views/admin/sites/preference.html.erb +++ b/app/views/admin/sites/preference.html.erb @@ -182,9 +182,10 @@
- <%= f.file_field :default_image, :id => "input-upload", :class => 'fileupload-new', :onchange => "document.getElementById('fu').innerHTML = this.form.fu.value = this.value;" %>Select Image - <% if @site.default_image.file.present?%> + <% if @site.default_image.file.present?%> <%= f.file_field :default_image, :id => "input-upload", :class => 'fileupload-new', :onchange => "document.getElementById('fu').innerHTML = this.form.fu.value = this.value;" %>Change + <%else%> + <%= f.file_field :default_image, :id => "input-upload", :class => 'fileupload-new', :onchange => "document.getElementById('fu').innerHTML = this.form.fu.value = this.value;" %>Select Image <%end%> Cancel @@ -201,27 +202,6 @@ -