From 42447edeaaeba4eb634c2e0763020b1a139fb522 Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Sat, 18 Apr 2015 21:38:07 +0200 Subject: [PATCH] Renamed Save to Upload in packages view --- app/views/packages/details.slim | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/app/views/packages/details.slim b/app/views/packages/details.slim index cb0bf09..a9da7a2 100644 --- a/app/views/packages/details.slim +++ b/app/views/packages/details.slim @@ -28,8 +28,7 @@ = form_for :screenshot, url: upload_image_path, html: { multipart: true } do |f| = f.label :image, 'Upload new screenshot' = f.file_field :image, id: 'fileupload', multiple: true - = f.submit 'Save' - + = f.submit "Upload" //- raise // TODO: Enable comments in a later version @@ -38,6 +37,7 @@ .small-5.medium-5.columns .bigpanel // Use action long description + // TODO: Use actual description instead of placeholder text p ' Mail client suitable for free distribution. It supports different mail ' accounts (POP, IMAP, Gmail), has an integrated learning Spam filter, and @@ -50,17 +50,17 @@ //a.button.radius.expand href=upload_package_by_name_path(name: @package.name) Upload a new screenshot -javascript: - $(function () { - $('#fileupload').fileupload({ - dataType: 'json', - done: function (e, data) { - $.each(data.result.files, function (index, file) { - $('

').text(file.name).appendTo(document.body); - }); - } - }); - }); +//javascript: +// $(function () { +// $('#fileupload').fileupload({ +// dataType: 'json', +// done: function (e, data) { +// $.each(data.result.files, function (index, file) { +// $('

').text(file.name).appendTo(document.body); +// }); +// } +// }); +// }); // TODO: Enable comment form //javascript: