Advertisement
Guest User

Untitled

a guest
Nov 18th, 2017
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 2.66 KB | None | 0 0
  1. diff --git a/app/subnets/addresses/address-modify.php b/app/subnets/addresses/address-modify.php
  2. index 2ddfcad..af3afca 100644
  3. --- a/app/subnets/addresses/address-modify.php
  4. +++ b/app/subnets/addresses/address-modify.php
  5. @@ -300,7 +300,7 @@ function validate_mac (ip, mac, sectionId, vlanId, id) {
  6.                 print ' <td>'._('Device').'</td>'. "\n";
  7.                 print ' <td>'. "\n";
  8.  
  9. -               print '<select name="switch" class="ip_addr form-control input-sm input-w-auto" '.$delete.'>'. "\n";
  10. +               print '<select name="switch" data-live-search="true" class="ip_addr form-control input-sm input-w-auto selectpicker" '.$delete.'>'. "\n";
  11.                 print '<option disabled>'._('Select device').':</option>'. "\n";
  12.                 print '<option value="0" selected>'._('None').'</option>'. "\n";
  13.  
  14. @@ -328,7 +328,7 @@ function validate_mac (ip, mac, sectionId, vlanId, id) {
  15.         <tr>
  16.                 <td><?php print _('Location'); ?></td>
  17.                 <td>
  18. -                       <select name="location_item" class="form-control input-sm input-w-auto">
  19. +                       <select name="location_item" data-live-search="true" class="form-control input-sm input-w-auto selectpicker">
  20.                         <option value="0"><?php print _("None"); ?></option>
  21.                         <?php
  22.                  if($locations!==false) {
  23. diff --git a/index.php b/index.php
  24. index f777b70..cc60db7 100755
  25. --- a/index.php
  26. +++ b/index.php
  27. @@ -114,6 +114,9 @@ else {
  28.         <script src="js/<?php print SCRIPT_PREFIX; ?>/bootstrap-table/bootstrap-table.min.js"></script>
  29.         <script src="js/<?php print SCRIPT_PREFIX; ?>/bootstrap-table/bootstrap-table-cookie.js"></script>
  30.  
  31. +       <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.12.4/css/bootstrap-select.min.css">
  32. +       <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.12.4/js/bootstrap-select.min.js"></script>
  33. +
  34.         <script type="text/javascript">
  35.         $(document).ready(function(){
  36.              if ($("[rel=tooltip]").length) { $("[rel=tooltip]").tooltip(); }
  37. diff --git a/js/1.3.1/magic.js b/js/1.3.1/magic.js
  38. index 34882c2..584316a 100755
  39. --- a/js/1.3.1/magic.js
  40. +++ b/js/1.3.1/magic.js
  41. @@ -552,6 +552,7 @@ $(document).on("click", ".modIPaddr", function() {
  42.          $('#popupOverlay div.popup_w500').html(data);
  43.          showPopup('popup_w500');
  44.          hideSpinner();
  45. +       $('.selectpicker').selectpicker('refresh');
  46.      }).fail(function(jqxhr, textStatus, errorThrown) { showError(jqxhr.statusText + "<br>Status: " + textStatus + "<br>Error: "+errorThrown); });
  47.      return false;
  48.  });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement