Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
c1baa85f
Commit
c1baa85f
authored
Apr 15, 2011
by
Christodoulos Psaltis
Browse files
Comment out page reload on delete, used for debugging
parent
fbbd2ad9
Changes
2
Hide whitespace changes
Inline
Side-by-side
ui/templates/list.html
View file @
c1baa85f
...
...
@@ -202,7 +202,7 @@ function update_machines_view(data){
if
(
server
.
status
==
"
DELETED
"
)
{
vmTable
.
fnDeleteRow
(
current
);
// Reload the page to check if server list is empty
location
.
reload
(
true
);
//
location.reload(true);
}
else
{
// when server is not be deleted, it should be updated
if
([
'
BUILD
'
,
'
ACTIVE
'
,
'
REBOOT
'
].
indexOf
(
server
.
status
)
>=
0
&&
[
STATUS_MESSAGES
[
'
STOPPED
'
],
STATUS_MESSAGES
[
'
ERROR
'
],
...
...
ui/templates/standard.html
View file @
c1baa85f
...
...
@@ -229,7 +229,7 @@ function update_machines_view(data){
if
(
server
.
status
==
'
DELETED
'
)
{
existing
.
remove
();
// Reload the page to check if server list is empty
location
.
reload
(
true
);
//
location.reload(true);
try
{
console
.
info
(
existing
.
find
(
"
a.name span.name
"
).
text
()
+
'
removed
'
);
}
catch
(
err
)
{}
...
...
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