mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-01 07:01:12 +00:00
[system admin] libraries: added 'history setting'
This commit is contained in:
@@ -13,6 +13,7 @@ define([
|
||||
initialize: function(options) {
|
||||
this.repo_name = options.repo_name;
|
||||
this.repo_id = options.repo_id;
|
||||
this.url_name = options.url_name;
|
||||
|
||||
this.render();
|
||||
this.$('.op-target').css({'max-width':280}); // for long repo name
|
||||
@@ -48,7 +49,7 @@ define([
|
||||
|
||||
$.ajax({
|
||||
url: Common.getUrl({
|
||||
'name': 'repo_history_limit',
|
||||
'name': this.url_name,
|
||||
'repo_id': this.repo_id
|
||||
}),
|
||||
type: 'get',
|
||||
@@ -120,7 +121,7 @@ define([
|
||||
|
||||
$.ajax({
|
||||
url: Common.getUrl({
|
||||
'name': 'repo_history_limit',
|
||||
'name': this.url_name,
|
||||
'repo_id': this.repo_id
|
||||
}),
|
||||
type: 'put',
|
||||
|
@@ -289,7 +289,8 @@ define([
|
||||
popupHistorySetting: function() {
|
||||
var options = {
|
||||
'repo_name': this.model.get('name'),
|
||||
'repo_id': this.model.get('id')
|
||||
'repo_id': this.model.get('id'),
|
||||
'url_name': 'repo_history_limit'
|
||||
};
|
||||
this.togglePopup(); // close the popup
|
||||
new HistorySettingsDialog(options);
|
||||
|
Reference in New Issue
Block a user