Browse Source

The behavior of the form of mass modification of records has been changed. The page update is done by pressing the button

rajven 2 năm trước cách đây
mục cha
commit
14b1ec82b9

+ 1 - 1
html/admin/iplist/index.php

@@ -57,7 +57,7 @@ print_ip_submenu($page_url);
         <b><?php echo WEB_ips_show_by_state; ?> - </b><?php print_enabled_select('enabled', $enabled); ?>
         <?php echo WEB_ips_search_host; ?>:&nbsp<input type="text" name="ip" value="<?php echo $f_ip; ?>" pattern="^((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])|([0-9A-Fa-f]{2}[:-]){5}[0-9A-Fa-f]{2}|([0-9a-fA-F]{4}[\\.-][0-9a-fA-F]{4}[\\.-][0-9a-fA-F]{4})|[0-9A-Fa-f]{12})$"/>
         <?php print WEB_rows_at_page."&nbsp"; print_row_at_pages('rows',$displayed); ?>
-        <input type="submit" value="<?php echo WEB_btn_show; ?>">
+        <input id="btn_filter" type="submit" value="<?php echo WEB_btn_show; ?>">
         </td>
 	</tr>
 </table>

+ 1 - 1
html/admin/iplist/nagios.php

@@ -43,7 +43,7 @@ print_ip_submenu($page_url);
         <b><?php print WEB_network_subnet; ?> - </b><?php print_subnet_select_office($db_link, 'subnet', $rsubnet); ?>
         <b><?php print WEB_nagios; ?> :</b><?php print_enabled_select('enabled', $enabled); ?>
         <?php print WEB_rows_at_page."&nbsp"; print_row_at_pages('rows',$displayed); ?>
-        <input type="submit" value="<?php print WEB_btn_show; ?>">
+        <input id="btn_filter" type="submit" value="<?php print WEB_btn_show; ?>">
         </td>
 	</tr>
 </table>

+ 1 - 1
html/admin/users/index.php

@@ -55,7 +55,7 @@ if ($msg_error) {
 <div>
 <b><?php print WEB_cell_ou; ?> - </b>
 <?php print_ou_select($db_link, 'ou', $rou); print WEB_rows_at_page."&nbsp"; print_row_at_pages('rows',$displayed); ?>
-<input type="submit" value="<?php echo WEB_btn_show; ?>">
+<input id="btn_filter" type="submit" value="<?php echo WEB_btn_show; ?>">
 </div>
 <br>
 <div>

+ 6 - 6
html/js/remodal-auth.js

@@ -1,7 +1,7 @@
 $(document).ready(function () {
     $("form").submit(function () {
 	var formID = $(this).attr('id');
-
+	var hangoutButton = document.getElementById("btn_filter");
         if (formID == "formAuthApply") {
             var formNm = $('#' + formID);
 	    var formTID = $('#def').attr('id');
@@ -16,12 +16,12 @@ $(document).ready(function () {
         	success: function (data) {
             	    $(formNm).html(data);
 		    location.href=formTm.attr("action");
-		    setTimeout(location.reload,1000);
+		    setTimeout(hangoutButton.click,1000);
         	},
         	error: function (jqXHR, text, error) {
         	    $(formNm).html(error);
 		    location.href=formTm.attr("action");
-		    setTimeout(location.reload,5000);
+		    setTimeout(hangoutButton.click,5000);
         	}
 	    });
 	    }
@@ -40,16 +40,16 @@ $(document).ready(function () {
         	success: function (data) {
             	    $(formNm).html(data);
 		    location.href=formTm.attr("action");
-		    setTimeout(location.reload,1000);
+		    setTimeout(hangoutButton.click,1000);
         	},
         	error: function (jqXHR, text, error) {
         	    $(formNm).html(error);
 		    location.href=formTm.attr("action");
-		    setTimeout(location.reload,5000);
+		    setTimeout(hangoutButton.click,5000);
         	}
 	    });
 	    }
 
-        return true;
+        return false;
     });
 });

+ 6 - 5
html/js/remodal-user.js

@@ -1,6 +1,7 @@
 $(document).ready(function () {
     $("form").submit(function () {
 	var formID = $(this).attr('id');
+	var hangoutButton = document.getElementById("btn_filter");
 
         if (formID == "formUserApply") {
             var formNm = $('#' + formID);
@@ -16,12 +17,12 @@ $(document).ready(function () {
         	success: function (data) {
             	    $(formNm).html(data);
 		    location.href=formTm.attr("action");
-		    setTimeout(location.reload,1000);
+		    setTimeout(hangoutButton.click,1000);
         	},
         	error: function (jqXHR, text, error) {
         	    $(formNm).html(error);
 		    location.href=formTm.attr("action");
-		    setTimeout(location.reload,5000);
+		    setTimeout(hangoutButton.click,5000);
         	}
 	    });
 	    }
@@ -40,16 +41,16 @@ $(document).ready(function () {
         	success: function (data) {
             	    $(formNm).html(data);
 		    location.href=formTm.attr("action");
-		    setTimeout(location.reload,1000);
+		    setTimeout(hangoutButton.click,1000);
         	},
         	error: function (jqXHR, text, error) {
         	    $(formNm).html(error);
 		    location.href=formTm.attr("action");
-		    setTimeout(location.reload,5000);
+		    setTimeout(hangoutButton.click,5000);
         	}
 	    });
 	    }
 
-        return true;
+        return false;
     });
 });