Commit eac7147d authored by Weblate's avatar Weblate

Merge remote-tracking branch 'origin/master'

parents 1f6c70f0 f385d2d2
...@@ -300,6 +300,9 @@ $(function() { ...@@ -300,6 +300,9 @@ $(function() {
if ($panel.is(":empty")) { if ($panel.is(":empty")) {
$panel.append("<div class='tab-loading'>" + gettext("Loading…") + "</div>"); $panel.append("<div class='tab-loading'>" + gettext("Loading…") + "</div>");
} }
ui.jqXHR.error(function() {
$panel.find('.tab-loading').html(gettext("AJAX request to load this content has failed!"));
});
}, },
load: function (e, ui) { load: function (e, ui) {
$('a.mergebutton').button({text: true, icons: { primary: "ui-icon-check" }}); $('a.mergebutton').button({text: true, icons: { primary: "ui-icon-check" }});
...@@ -349,6 +352,10 @@ $(function() { ...@@ -349,6 +352,10 @@ $(function() {
if ($panel.is(":empty")) { if ($panel.is(":empty")) {
$panel.append("<div class='tab-loading'>" + gettext("Loading…") + "</div>"); $panel.append("<div class='tab-loading'>" + gettext("Loading…") + "</div>");
} }
ui.jqXHR.error(function() {
$panel.find('.tab-loading').html(gettext("AJAX request to load this content has failed!"));
});
}, },
}); });
$("#id_date").datepicker(); $("#id_date").datepicker();
......
...@@ -1132,6 +1132,12 @@ class SubProject(models.Model): ...@@ -1132,6 +1132,12 @@ class SubProject(models.Model):
if (self.id): if (self.id):
old = SubProject.objects.get(pk=self.id) old = SubProject.objects.get(pk=self.id)
changed_git = (old.repo != self.repo) or (old.branch != self.branch) or (old.filemask != self.filemask) changed_git = (old.repo != self.repo) or (old.branch != self.branch) or (old.filemask != self.filemask)
# Detect slug changes and rename git repo
if old.slug != self.slug:
os.rename(
old.get_path(),
self.get_path()
)
# Configure git repo if there were changes # Configure git repo if there were changes
if changed_git: if changed_git:
......
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