From 9620e5e7f9d92fe90152f99e26eafc3a62fe0f88 Mon Sep 17 00:00:00 2001 From: David Mason Date: Fri, 2 Aug 2013 16:12:45 +1000 Subject: [PATCH] rhbz990373 disable source upload buttons when no file specified A null pointer exception occurred when an upload was submitted without first selecting a file. This prevents submission whenever a file is not selected. --- .../main/webapp/iteration/source_files.xhtml | 32 ++++++++++++++++--- .../src/main/webapp/resources/css/zanata.css | 5 +++ 2 files changed, 33 insertions(+), 4 deletions(-) diff --git a/zanata-war/src/main/webapp/iteration/source_files.xhtml b/zanata-war/src/main/webapp/iteration/source_files.xhtml index 265222e3d8..121aabdabb 100644 --- a/zanata-war/src/main/webapp/iteration/source_files.xhtml +++ b/zanata-war/src/main/webapp/iteration/source_files.xhtml @@ -15,6 +15,7 @@ @@ -228,7 +246,9 @@ - @@ -256,7 +276,8 @@
- @@ -274,7 +295,9 @@ -
@@ -306,7 +329,8 @@
- diff --git a/zanata-war/src/main/webapp/resources/css/zanata.css b/zanata-war/src/main/webapp/resources/css/zanata.css index 8d9f107798..df736117e8 100644 --- a/zanata-war/src/main/webapp/resources/css/zanata.css +++ b/zanata-war/src/main/webapp/resources/css/zanata.css @@ -130,6 +130,11 @@ input[readonly] { color:#545454; } +input[disabled] { + opacity: 0.5; + cursor: default; +} + button:hover,input[type="reset"]:hover,input[type="submit"]:hover,input[type="button"]:hover { background: #CCC;