From 6d87c01155f7c6f00f5e33539db75b2f7c2e5a28 Mon Sep 17 00:00:00 2001 From: bugrain Date: Thu, 6 Aug 2009 22:41:35 +0000 Subject: [PATCH] Basic no JavaScript support using CSS --- e107_admin/header.php | 8 ++- e107_files/e_css.php | 56 ++++++++++++++++ .../download/handlers/adminDownload_class.php | 64 +++++++++---------- e107_themes/templates/header_default.php | 7 +- 4 files changed, 97 insertions(+), 38 deletions(-) create mode 100644 e107_files/e_css.php diff --git a/e107_admin/header.php b/e107_admin/header.php index d5fc34c9d..ea273b29f 100644 --- a/e107_admin/header.php +++ b/e107_admin/header.php @@ -12,9 +12,9 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_admin/header.php,v $ -| $Revision: 1.42 $ -| $Date: 2009-08-05 14:20:40 $ -| $Author: e107coders $ +| $Revision: 1.43 $ +| $Date: 2009-08-06 22:41:34 $ +| $Author: bugrain $ +---------------------------------------------------------------+ */ @@ -264,6 +264,8 @@ if (function_exists('headerjs')){echo headerjs(); } // echo "\n"; +require_once(e_FILE."/e_css.php"); + if (isset($eplug_css) && $eplug_css) { echo "\n\n"; echo "\n"; diff --git a/e107_files/e_css.php b/e107_files/e_css.php new file mode 100644 index 000000000..29fe6c0ed --- /dev/null +++ b/e107_files/e_css.php @@ -0,0 +1,56 @@ + + /* Used to hide elements when JavaScript is enabled */ + .e-hide-if-js { + display: none; + } + + + +"; +?> \ No newline at end of file diff --git a/e107_plugins/download/handlers/adminDownload_class.php b/e107_plugins/download/handlers/adminDownload_class.php index c45d13d7c..8f9647d69 100644 --- a/e107_plugins/download/handlers/adminDownload_class.php +++ b/e107_plugins/download/handlers/adminDownload_class.php @@ -11,8 +11,8 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_plugins/download/handlers/adminDownload_class.php,v $ -| $Revision: 1.14 $ -| $Date: 2009-07-23 23:40:57 $ +| $Revision: 1.15 $ +| $Date: 2009-08-06 22:41:34 $ | $Author: bugrain $ | +----------------------------------------------------------------------------+ @@ -59,33 +59,33 @@ class adminDownload extends download // Search field $text .= " - -
+ +