Commit b21deede authored by Thomas Lechauve's avatar Thomas Lechauve

Remove getParameterByName method from tests

parent e5ff2cc2
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
statusEvent = statusEvent || this.statusDefault; statusEvent = statusEvent || this.statusDefault;
return this.each(function(){ return this.each(function(){
$.ajax({ $.ajax({
url: "http://"+$(this).slapos('host')+url, url: $(this).slapos('host')+url,
type: type, type: type,
contentType: 'application/octet-stream', contentType: 'application/octet-stream',
data: JSON.stringify(data), data: JSON.stringify(data),
......
...@@ -429,12 +429,3 @@ $(function(){ ...@@ -429,12 +429,3 @@ $(function(){
equal($(document).slapos('store', 'host'), "http://examples.com", "should contains modified host") equal($(document).slapos('store', 'host'), "http://examples.com", "should contains modified host")
}); });
}); });
function getParameterByName(name){
name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]");
var regexS = "[\\?&]" + name + "=([^&#]*)";
var regex = new RegExp(regexS);
var results = regex.exec(window.location.search);
if(results == null) return "";
else return decodeURIComponent(results[1].replace(/\+/g, " "));
}
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment