Browse Source

Tweaked the quick edit to appear only if javascript is enabled

Signed-off-by: emanuele <emanuele45@gmail.com>
emanuele 12 years ago
parent
commit
37fbb1627e
2 changed files with 5 additions and 1 deletions
  1. 1 0
      Themes/default/Display.template.php
  2. 4 1
      Themes/default/css/index.css

+ 1 - 0
Themes/default/Display.template.php

@@ -861,6 +861,7 @@ function template_main()
 					});';
 
 	echo '
+					$(".quick_edit").css("display", "inline");
 					if (\'XMLHttpRequest\' in window)
 					{
 						var oQuickModify = new QuickModify({

+ 4 - 1
Themes/default/css/index.css

@@ -2261,12 +2261,15 @@ ul.quickbuttons li.inline_mod_check {
 	position: relative;
 	color: #222;
 }
-.quickbuttons li.quick_edit img{
+.quickbuttons li.quick_edit img {
 	padding: 2px 7em 2px 3px;
 	position: absolute;
 	left: 0;
 	top: 0;
 }
+.quickbuttons li.quick_edit {
+	display: none;
+}
 ul.quickbuttons li.inline_mod_check {
 	padding: 3px 0 0 3px;
 	background: none;