Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
slapos.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Romain Courteaud
slapos.core
Commits
b21deede
Commit
b21deede
authored
May 03, 2012
by
Thomas Lechauve
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove getParameterByName method from tests
parent
e5ff2cc2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
10 deletions
+1
-10
jQuery/static/js/slapOs.js
jQuery/static/js/slapOs.js
+1
-1
jQuery/static/js/test.js
jQuery/static/js/test.js
+0
-9
No files found.
jQuery/static/js/slapOs.js
View file @
b21deede
...
@@ -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
),
...
...
jQuery/static/js/test.js
View file @
b21deede
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment