Add the counter to mobile (#5)
Jeremy D

Jeremy D commited on 2023-03-31 17:38:58
Showing 3 changed files, with 5 additions and 4 deletions.

... ...
@@ -6,7 +6,7 @@
6 6
  * @author SleePy <sleepy @ simplemachines (dot) org>
7 7
  * @copyright 2022
8 8
  * @license 3-Clause BSD https://opensource.org/licenses/BSD-3-Clause
9
- * @version 1.0
9
+ * @version 1.1
10 10
  */
11 11
 class ErrorPopup
12 12
 {
... ...
@@ -43,6 +43,7 @@ class ErrorPopup
43 43
 			$("ul#top_info").append(errorLI);
44 44
 			$("ul#top_info").find(\'a[href*="errorlog"]\').attr("id", "error_menu_top").wrapInner("<span class=\"textmenu\"></span>").prepend("<span class=\"main_icons logs\"></span>");
45 45
 			user_menus.add("error", "' . $scripturl . '?action=admin;area=logs;sa=errorlog");
46
+			$("a#error_menu_top span.amt").detach().appendTo("a#error_menu_top");
46 47
 
47 48
 			function tryUpdateErrorCounter(xhr) {
48 49
 				var newErrorCount = xhr.getResponseHeader("x-smf-errorlogcount");
... ...
@@ -1,6 +1,6 @@
1 1
 BSD 3-Clause License
2 2
 
3
-Copyright (c) 2022, SleePy
3
+Copyright (c) 2023, SleePy
4 4
 All rights reserved.
5 5
 
6 6
 Redistribution and use in source and binary forms, with or without
... ...
@@ -2,7 +2,7 @@
2 2
 <package-info xmlns="http://www.simplemachines.org/xml/package-info" xmlns:smf="http://www.simplemachines.org/">
3 3
 	<id>sleepy:errorpup</id>
4 4
 	<name>Error Log Popup</name>
5
-	<version>1.2</version>
5
+	<version>1.3</version>
6 6
 	<type>modification</type>
7 7
 
8 8
 	<install for="SMF 2.1.*">
... ...
@@ -22,7 +22,7 @@
22 22
 		<remove-file name="$sourcedir/ErrorPopup.php" />
23 23
 	</uninstall>
24 24
 
25
-	<upgrade from="1.0-1.1" for="2.1.*">
25
+	<upgrade from="1.0-1.2" for="2.1.*">
26 26
 		<require-file name="ErrorPopup.php" destination="$sourcedir" />
27 27
 	</upgrade>
28 28
 
29 29