r3558 can't believe i missed these. Corrected it for the new printSelect and autocom...
authorRyan Farrington <gwyden@dreamflyght.com>
Sun, 9 May 2010 17:13:58 +0000 (17:13 +0000)
committerRyan Farrington <gwyden@dreamflyght.com>
Sun, 9 May 2010 17:13:58 +0000 (17:13 +0000)
inc/interface.php
popup.php

index 93203c516365fa5ace9c5b574dae7c367b665694..bd1812929869d244b0b8535366b63cc21da1f7cf 100644 (file)
@@ -7096,14 +7096,7 @@ function renderVLANIPv4 ($some_id)
                if (!count ($options))
                        return;
                printOpFormIntro ('bind');
-               echo "<script>";
-               echo "window.dhx_globalImgPath='pix/';";
-               echo "</script>";
-               echo "<script src='js/dhtmlxcommon.js'></script>";
-               echo "<script src='js/dhtmlxcombo.js'></script>";
-               echo "<link rel='STYLESHEET' type='text/css' href='/css/dhtmlxcombo.css'>";
-               echo '<tr><td>' . getNiftySelect ($options, array ('name' => $sname, 'tabindex' => 101, 'id' => $sname));
-               echo "<script>$(document).ready(function() {var z=dhtmlXComboFromSelect('" . $sname . "');z.enableFilteringMode(true);})</script>";     
+               echo '<tr><td>' . getNiftySelect ($options, array ('name' => $sname, 'tabindex' => 101, 'id' => $sname), Null, true);
                echo '</td><td>' . getImageHREF ('Attach', 'bind', TRUE, 102) . '</td></tr></form>';
        }
        global $pageno;
index 0f831a2832e551ca912aba24895277ccf5e49bff..6aaf66f8964e8a29579ffd6d9475f9775297c94a 100644 (file)
--- a/popup.php
+++ b/popup.php
@@ -94,15 +94,8 @@ header ('Content-Type: text/html; charset=UTF-8');
                                        $only_racks = getProximateRacks ($object['rack_id'], getConfigVar ('PROXIMITY_RANGE'));
                        }
                        $spare_ports = findSparePorts ($port_id, $only_racks);
-               echo "<script>";
-               echo "window.dhx_globalImgPath='pix/';";
-               echo "</script>";
-               echo "<script src='js/dhtmlxcommon.js'></script>";
-               echo "<script src='js/dhtmlxcombo.js'></script>";
-               echo "<link rel='STYLESHEET' type='text/css' href='css/dhtmlxcombo.css'>";
 
-                       printSelect ($spare_ports, array ('name' => 'ports', 'id' => 'ports'));
-                       echo "<script>$(document).ready(function() {var z=dhtmlXComboFromSelect('ports');z.enableFilteringMode(true);})</script>";      
+                       printSelect ($spare_ports, array ('name' => 'ports', 'id' => 'ports'), Null, true);
 
                        echo '<br><br>';
                        echo "<input type='submit' value='Link' onclick='".