Просмотр исходного кода

Operator Panel: JS fix to restore functionality in Chrome and IE, Reduce font size and change font of auto-complete suggestion list.
Minimized Template: Similar JS fix for Chrome and IE.

Nate Jones 10 лет назад
Родитель
Сommit
3744058b0e
2 измененных файлов с 10 добавлено и 6 удалено
  1. 1 1
      themes/enhanced/template.php
  2. 9 5
      themes/minimized/template.php

+ 1 - 1
themes/enhanced/template.php

@@ -1260,8 +1260,8 @@ legend {
 
 <script language="JavaScript" type="text/javascript">
 	function display_message(msg, mood, delay) {
-		delay = (typeof delay  === "undefined") ? <?php echo (1000 * (float) $_SESSION['theme']['message_delay']['text']); ?> : delay;
 		mood = typeof mood !== 'undefined' ? mood : 'default';
+		delay = typeof delay !== 'undefined' ? delay : <?php echo (1000 * (float) $_SESSION['theme']['message_delay']['text']); ?>;
 		if (msg != '') {
 			// insert temp div to get width w/o scroll bar
 			var helper_div = $('<div />');

+ 9 - 5
themes/minimized/template.php

@@ -1125,8 +1125,6 @@ legend {
 	/* jquery ui autocomplete styles */
 
 	.ui-widget {
-		font-family: arial;
-		font-size: 12px;
 		margin: 0px;
 		padding: 0px;
 		}
@@ -1142,18 +1140,23 @@ legend {
 		border: 1px solid #c0c0c0;
 		}
 
+	.ui-menu, .ui-menu .ui-menu-item {
+		width: 350px;
+		}
+
 	.ui-menu .ui-menu-item a {
-		padding-right: 25px;
 		text-decoration: none;
 		cursor: pointer;
 		border-color: #fff;
 		background-image: none;
 		background-color: #fff;
+		white-space: nowrap;
+		font-family: arial;
+		font-size: 12px;
 		color: #444;
 		}
 
 	.ui-menu .ui-menu-item a:hover {
-		padding-right: 25px;
 		color: #5082ca;
 		border: 1px solid white;
 		background-image: none;
@@ -1272,8 +1275,9 @@ legend {
 </script>
 
 <script language="JavaScript" type="text/javascript">
-	function display_message(msg, mood, delay = <?php echo (1000 * (float) $_SESSION['theme']['message_delay']['text']); ?>) {
+	function display_message(msg, mood, delay) {
 		mood = typeof mood !== 'undefined' ? mood : 'default';
+		delay = typeof delay !== 'undefined' ? delay : <?php echo (1000 * (float) $_SESSION['theme']['message_delay']['text']); ?>;
 		if (msg != '') {
 			// insert temp div to get width w/o scroll bar
 			var helper_div = $('<div />');