Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mailinabox
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
mailinabox
Commits
dbfd1583
Commit
dbfd1583
authored
Aug 28, 2015
by
Joshua Tauberer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dont refresh the backup page when there's an error saving the config
parent
2b1f7da6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
backup.py
management/backup.py
+1
-1
system-backup.html
management/templates/system-backup.html
+4
-3
No files found.
management/backup.py
View file @
dbfd1583
...
...
@@ -384,7 +384,7 @@ def backup_set_custom(env, target, target_user, target_pass, min_age):
write_backup_config
(
env
,
config
)
return
"
Updated backup config
"
return
"
OK
"
def
get_backup_config
(
env
,
for_save
=
False
,
for_ui
=
False
):
backup_root
=
os
.
path
.
join
(
env
[
"STORAGE_ROOT"
],
'backup'
)
...
...
management/templates/system-backup.html
View file @
dbfd1583
...
...
@@ -202,11 +202,12 @@ function set_custom_backup() {
min_age
:
min_age
},
function
(
r
)
{
//
Responses are multiple lines of pre-formatted text.
show_modal_error
(
"
Backup configuration
"
,
$
(
"
<p
re/>
"
).
text
(
r
),
function
()
{
show_system_backup
();
});
// refresh after modal
//
use .text() --- it's a text response, not html
show_modal_error
(
"
Backup configuration
"
,
$
(
"
<p
/>
"
).
text
(
r
),
function
()
{
if
(
r
==
"
OK
"
)
show_system_backup
();
});
// refresh after modal on success
},
function
(
r
)
{
show_modal_error
(
"
Backup configuration (error)
"
,
r
);
// use .text() --- it's a text response, not html
show_modal_error
(
"
Backup configuration
"
,
$
(
"
<p/>
"
).
text
(
r
));
});
return
false
;
}
...
...
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