Explorar o código

Cleanup of Code

own3mall %!s(int64=9) %!d(string=hai) anos
pai
achega
d548c431a3
Modificáronse 2 ficheiros con 7 adicións e 7 borrados
  1. 2 2
      includes/refreshed.php
  2. 5 5
      modules/administration/watch_logger.php

+ 2 - 2
includes/refreshed.php

@@ -80,7 +80,7 @@ class refreshed
 					$isUndefined = " && typeof collapsible !== 'undefined'";
 				}
 				$switch .= "if( pos == $i && status == 'online' )\n{\n".
-								"if(collapsible == 'expanded'$isUndefined){\n".
+								"if(collapsible.match('expanded')$isUndefined){\n".
 									$stopRefresh.
 								"}\nelse\n{\n".
 									$load.
@@ -91,7 +91,7 @@ class refreshed
 			return	"$.ajaxSetup({ cache: false });\n".
 					$start_expanded.
 					"$('.collapsible').click(function(){\n".
-						"var collapsible = $(this).find('a').attr('class');\n".
+						"var collapsible = $(this).attr('class');\n".
 						"var pos = $(this).attr('data-pos');\n".
 						"var status = $(this).attr('data-status');\n".
 						$switch.

+ 5 - 5
modules/administration/watch_logger.php

@@ -94,10 +94,10 @@ function exec_ogp_module() {
 				 "</form>\n".
 				 "</center>\n".
 				 "</td>\n".
-				 "<td class='collapsible'><span class='hidden' >$log_id</span><a></a>$when</td>\n".
-				 "<td class='collapsible'><a></a>$who</td>\n".
-				 "<td class='collapsible'><a></a>$where</td>\n".
-				 "<td class='collapsible'><a></a>$what</td>\n".
+				 "<td class='collapsible'><span class='hidden' >$log_id</span>$when</td>\n".
+				 "<td class='collapsible'>$who</td>\n".
+				 "<td class='collapsible'>$where</td>\n".
+				 "<td class='collapsible'>$what</td>\n".
 				 "</tr>\n";
 			
 			echo "<tr class='expand-child'>\n".
@@ -123,4 +123,4 @@ function exec_ogp_module() {
 	$uri = '?m=administration&p=watch_logger&limit='.$l.'&page=';
 	echo paginationPages($count_logs[0]['total'], $p, $l, $uri, 3, 'watchLogger');
 }
-?>
+?>