Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
a29f07d6
Commit
a29f07d6
authored
Feb 28, 2014
by
Leigh B Stoller
Browse files
Fix bug wrt how the new XML is inserted into the rspec.
parent
41cb006d
Changes
1
Hide whitespace changes
Inline
Side-by-side
www/aptui/js/manage_profile.js
View file @
a29f07d6
...
...
@@ -171,16 +171,18 @@ function ($, sup)
// See if we need to add the section to top level.
var
tour
=
$
(
xml
).
find
(
"
rspec_tour
"
);
if
(
!
tour
.
length
)
{
$
(
xml
).
find
(
"
rspec
"
).
prepend
(
$
(
'
<rspec_tour xmlns=
'
+
var
newdoc
=
$
.
parseXML
(
'
<rspec_tour xmlns=
'
+
'
"http://www.protogeni.net/resources/rspec/ext/apt-tour/1">
'
+
'
</rspec_tour>
'
));
'
</rspec_tour>
'
);
$
(
xml
).
find
(
"
rspec
"
).
prepend
(
$
(
newdoc
).
find
(
"
rspec_tour
"
));
}
var
tour
=
$
(
xml
).
find
(
"
rspec_tour
"
);
// Ditto the subsection.
var
sub
=
$
(
tour
).
find
(
which
);
if
(
!
sub
.
length
)
{
$
(
xml
).
find
(
"
rspec_tour
"
).
append
(
$
(
'
<
'
+
which
+
'
type="text">
'
+
'
</
'
+
which
+
'
>
'
));
var
newdoc
=
$
.
parseXML
(
'
<
'
+
which
+
'
type="text">
'
+
'
</
'
+
which
+
'
>
'
);
$
(
xml
).
find
(
"
rspec_tour
"
).
append
(
$
(
newdoc
).
find
(
which
));
}
var
sub
=
$
(
tour
).
find
(
which
);
$
(
sub
).
text
(
text
);
...
...
Write
Preview
Supports
Markdown
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