Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
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
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
eac7147d
Commit
eac7147d
authored
Jan 09, 2013
by
Weblate
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
1f6c70f0
f385d2d2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
weblate/media/js/loader.js
weblate/media/js/loader.js
+7
-0
weblate/trans/models.py
weblate/trans/models.py
+6
-0
No files found.
weblate/media/js/loader.js
View file @
eac7147d
...
...
@@ -300,6 +300,9 @@ $(function() {
if
(
$panel
.
is
(
"
:empty
"
))
{
$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
)
{
$
(
'
a.mergebutton
'
).
button
({
text
:
true
,
icons
:
{
primary
:
"
ui-icon-check
"
}});
...
...
@@ -349,6 +352,10 @@ $(function() {
if
(
$panel
.
is
(
"
:empty
"
))
{
$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
();
...
...
weblate/trans/models.py
View file @
eac7147d
...
...
@@ -1132,6 +1132,12 @@ class SubProject(models.Model):
if
(
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
)
# 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
if
changed_git
:
...
...
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