mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-09 10:50:24 +00:00
[sub lib create] bugfix
This commit is contained in:
@@ -120,6 +120,7 @@ define([
|
||||
dataType: 'json',
|
||||
success: function(data) {
|
||||
$.modal.close();
|
||||
if (_this.repos.length > 0) {
|
||||
_this.repos.add({
|
||||
'id': data["sub_repo_id"],
|
||||
'name': data["name"],
|
||||
@@ -129,6 +130,9 @@ define([
|
||||
'mtime': new Date().getTime() / 1000,
|
||||
'mtime_relative': gettext("Just now")
|
||||
}, {prepend: true});
|
||||
} else {
|
||||
_this.showMyRepos();
|
||||
}
|
||||
},
|
||||
error: function(xhr, textStatus, errorThrown) {
|
||||
var err;
|
||||
@@ -144,7 +148,6 @@ define([
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
});
|
||||
|
||||
return ReposView;
|
||||
|
Reference in New Issue
Block a user