From a6473a0d046221ab2a134e56ca1930efe26fee75 Mon Sep 17 00:00:00 2001 From: Castro0o Date: Mon, 24 Nov 2014 15:08:38 +0100 Subject: [PATCH] * selet#formatselect onchange: submits form; * download file renamed: hype_conversion.ext; * styled dropzone and tried to use employ messages; --- cgi-bin/pandoc.cgi | 8 ++++---- hybrid.css | 13 +++++++++++++ hybrid.html | 4 ++-- hybrid.js | 6 ++++-- lib/dropzone/dropzone.js | 10 +++++----- 5 files changed, 28 insertions(+), 13 deletions(-) diff --git a/cgi-bin/pandoc.cgi b/cgi-bin/pandoc.cgi index 12ac3ea..f3e93f1 100755 --- a/cgi-bin/pandoc.cgi +++ b/cgi-bin/pandoc.cgi @@ -42,7 +42,7 @@ if method == "POST": download = submit == "download" download_filename = None if download: - download_filename = "pandoc" + to_type['ext'] + download_filename = "hype_conversion." + to_type['ext'] try: @@ -72,7 +72,7 @@ if method == "POST": print "Content-type: {0}".format(to_type['mime']) if download: - print "Content-Disposition: attachment;filename=\"pandoc.{0}\"".format(to_type['ext']) + print "Content-Disposition: attachment;filename=\"hype_conversion.{0}\"".format(to_type['ext']) print # p = subprocess.check_output('pandoc --from {0} --to {1} "{2}"'.format(ffrom, to, tmp.name), shell=True, stderr=subprocess.STDOUT) # print p @@ -97,7 +97,7 @@ if method == "POST": try: print "Content-type: {0}".format(to_type['mime']) if download: - print "Content-Disposition: attachment;filename=\"pandoc.{0}\"".format(to_type['ext']) + print "Content-Disposition: attachment;filename=\"hype_conversion.{0}\"".format(to_type['ext']) print # p = subprocess.check_output('pandoc --from {0} --to {1} "{2}"'.format(ffrom, to, tmp.name), shell=True, stderr=subprocess.STDOUT) # print p @@ -135,4 +135,4 @@ to:

-""" \ No newline at end of file +""" diff --git a/hybrid.css b/hybrid.css index f87096a..e7e1ba3 100644 --- a/hybrid.css +++ b/hybrid.css @@ -230,4 +230,17 @@ img.logo{ input, select, button{ background: #FFF; border: 2px solid #0F0; +} + +div.dz-error-message span{ + border-bottom: 2px dotted #0F0!important; +} + +div.dz-details{ + font-size: 0.8em; + margin-top: 20px; +} + +div.ace_print-margin{ + visibility:hidden!important; } \ No newline at end of file diff --git a/hybrid.html b/hybrid.html index 44e6c4b..107e8e4 100644 --- a/hybrid.html +++ b/hybrid.html @@ -40,7 +40,7 @@
- @@ -55,7 +55,7 @@ -