1
0
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:
llj
2017-08-11 17:51:11 +08:00
parent 466ef48116
commit c6e8b64492
9 changed files with 82 additions and 44 deletions

View File

@@ -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',

View File

@@ -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);