--- portconf/src/index.py 2008/03/13 05:47:17 53 +++ portconf/index.py 2008/03/21 04:18:15 61 @@ -37,7 +37,7 @@ $(this).text ("Wait..."); portName = $(this).parents("tr").attr ('id'); - $(this).load ("/portconf/update.py?action=getportfast&switch=""" + switchName + """&port=" + portName); + $(this).load ("update.py?action=getportfast&switch=""" + switchName + """&port=" + portName); $(this).unbind (); $(this).click (togglePortfast); }); @@ -46,24 +46,24 @@ $(this).text ("Wait..."); td = $(this).parents ("td"); portName = $(this).parents("tr").attr ('id'); - td.load ("/portconf/update.py?action=geterrors&switch=""" + switchName + """&port=" + portName); + td.load ("update.py?action=geterrors&switch=""" + switchName + """&port=" + portName); }); $("a.status").click (function () { $(this).attr ("class", "statusload"); $(this).text ("Wait..."); td = $(this).parents ("td"); portName = $(this).parents("tr").attr ('id'); - $(this).load ("/portconf/update.py?action=toggleshutdown&switch=""" + switchName + """&port=" + portName); + $(this).load ("update.py?action=toggleshutdown&switch=""" + switchName + """&port=" + portName); }); togglePortfast = function () { $(this).text ("Wait..."); portName = $(this).parents("tr").attr ('id'); - $(this).load ("/portconf/update.py?action=toggleportfast&switch=""" + switchName + """&port=" + portName); + $(this).load ("update.py?action=toggleportfast&switch=""" + switchName + """&port=" + portName); }; toggleShutdown = function () { $(this).text ("Wait..."); portName = $(this).parents("tr").attr ('id'); - $(this).load ("/portconf/update.py?action=toggleshutdown&switch=""" + switchName + """&port=" + portName); + $(this).load ("update.py?action=toggleshutdown&switch=""" + switchName + """&port=" + portName); }; descClick = function () { $(this).attr ("class", "descinput"); @@ -76,9 +76,9 @@ td = $(this).parents ("td"); td.html ("Saving..."); td.children ().click (descClick); - td.children().load ("/portconf/update.py?action=setdescription&switch=""" + switchName + """&port=" + portName + "&desc=" + escape (portDesc)); + td.children().load ("update.py?action=setdescription&switch=""" + switchName + """&port=" + portName + "&desc=" + escape (portDesc)); }); - //td.load ("/portconf/update.py?action=geterrors&switch=""" + switchName + """&port=" + portName); + //td.load ("update.py?action=geterrors&switch=""" + switchName + """&port=" + portName); }; vlanClick = function () { $(this).attr ("class", "vlaninput"); @@ -91,7 +91,7 @@ td = $(this).parents ("td"); td.html ("Saving..."); td.children ().click (vlanClick); - td.children().load ("/portconf/update.py?action=setvlan&switch=""" + switchName + """&port=" + escape(portName) + "&vlan=" + escape (vlan)); + td.children().load ("update.py?action=setvlan&switch=""" + switchName + """&port=" + escape(portName) + "&vlan=" + escape (vlan)); }); }; $("a.desc").click (descClick);