Revert "make app portable through uri_base"
This reverts commit c555fc9330.
			
			
This commit is contained in:
		| @@ -1,5 +1,5 @@ | ||||
|  | ||||
|           <form id="[% tab.id %]_form" class="nd_sidesearchform form-stacked" method="get" action="[% uri_base %]/device"> | ||||
|           <form id="[% tab.id %]_form" class="nd_sidesearchform form-stacked" method="get" action="/device"> | ||||
|             <input name="ip" value="[% params.ip %]" type="hidden"/> | ||||
|             <input name="q" value="[% params.q %]" type="hidden"/> | ||||
|           </form> | ||||
|   | ||||
| @@ -1,5 +1,5 @@ | ||||
|  | ||||
|           <form id="[% tab.id %]_form" class="nd_sidesearchform form-stacked" method="get" action="[% uri_base %]/device"> | ||||
|           <form id="[% tab.id %]_form" class="nd_sidesearchform form-stacked" method="get" action="/device"> | ||||
|             <input name="ip" value="[% params.ip %]" type="hidden"/> | ||||
|             <input name="q" value="[% params.q %]" type="hidden"/> | ||||
|           </form> | ||||
|   | ||||
| @@ -1,5 +1,5 @@ | ||||
|  | ||||
|           <form id="[% tab.id %]_form" class="nd_sidesearchform form-stacked" method="get" action="[% uri_base %]/device"> | ||||
|           <form id="[% tab.id %]_form" class="nd_sidesearchform form-stacked" method="get" action="/device"> | ||||
|             <input name="ip" value="[% params.ip %]" type="hidden"/> | ||||
|             <input name="q" value="[% params.q %]" type="hidden"/> | ||||
|           </form> | ||||
|   | ||||
| @@ -1,5 +1,5 @@ | ||||
|  | ||||
|           <form id="[% tab.id %]_form" class="nd_sidesearchform form-stacked" method="get" action="[% uri_base %]/device"> | ||||
|           <form id="[% tab.id %]_form" class="nd_sidesearchform form-stacked" method="get" action="/device"> | ||||
|             <input name="tab" value="[% tab.id %]" type="hidden"/> | ||||
|             <input name="ip" value="[% params.ip %]" type="hidden"/> | ||||
|             <div class="clearfix"> | ||||
|   | ||||
| @@ -50,7 +50,7 @@ | ||||
|       ); | ||||
|  | ||||
|       // submit the query and put results into the tab pane | ||||
|       $(target).load( '[% uri_base %]/ajax/content/device/' + tab + '?' + query, | ||||
|       $(target).load( '/ajax/content/device/' + tab + '?' + query, | ||||
|         function(response, status, xhr) { | ||||
|           if (status !== "success") { | ||||
|             $(target).html( | ||||
| @@ -65,7 +65,7 @@ | ||||
|             ); | ||||
|           } | ||||
|           // looks good, update the bookmark for this search | ||||
|           $(mark).attr('href', '[% uri_base %]/device?' + query); | ||||
|           $(mark).attr('href', '/device?' + query); | ||||
|  | ||||
|           // enable collapser on any large vlan lists | ||||
|           $('.nd_collapse_vlans').collapser({ | ||||
|   | ||||
| @@ -18,7 +18,7 @@ | ||||
|       ); | ||||
|  | ||||
|       // submit the query and put results into the tab pane | ||||
|       $(target).load( '[% uri_base %]/ajax/content/search/' + tab + '?' + query, | ||||
|       $(target).load( '/ajax/content/search/' + tab + '?' + query, | ||||
|         function(response, status, xhr) { | ||||
|           if (status !== "success") { | ||||
|             $(target).html( | ||||
| @@ -33,7 +33,7 @@ | ||||
|             ); | ||||
|           } | ||||
|           // looks good, update the bookmark for this search | ||||
|           $(mark).attr('href', '[% uri_base %]/search?' + query); | ||||
|           $(mark).attr('href', '/search?' + query); | ||||
|         } | ||||
|       ); | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user