Explorar o código

Update util.php

Overlooked an unused variable and a commented piece of JS - making the add admin button not be re-enabled on success.
Adjokip %!s(int64=9) %!d(string=hai) anos
pai
achega
fce8a116b1
Modificáronse 1 ficheiros con 2 adicións e 3 borrados
  1. 2 3
      modules/util/util.php

+ 2 - 3
modules/util/util.php

@@ -310,7 +310,6 @@ function exec_ogp_module()
 			var gamePort = $("#gameserver_port").val();
 			var addSteamid = $("#addSteamid").val();
 			var immunity = $("#immunity").val();
-			var permissionType = $("#sourcemod_perms").val();
 			
 			// Set the message divs back to defaults.
 			$("#invalid_server").removeClass('show').addClass('hide');
@@ -337,7 +336,7 @@ function exec_ogp_module()
 			if(errors === 0){
 				$.post("/modules/util/addadmin_helper.php", $("#addadmin_form").serialize(), function(postCommand){
 					$("#addadmin_response").removeClass('hide').addClass('show').html(postCommand);
-					//$("#addadmin_form button").prop({disabled:false});
+					$("#addadmin_form button").prop({disabled:false});
 				}).fail(function(){
 					$("#invalid_response_admin").removeClass('hide').addClass('show');
 					$("#addadmin_form button").prop({disabled:false});
@@ -388,4 +387,4 @@ function exec_ogp_module()
 </script>
 <?php
 }
-?>
+?>