mirror of
https://github.com/haiwen/seahub.git
synced 2025-10-21 10:51:17 +00:00
[dist] Update
This commit is contained in:
@@ -9,7 +9,7 @@ define([
|
||||
model: PubRepo,
|
||||
url: app.pageOptions.pubReposUrl,
|
||||
|
||||
comparator: -'mtime',
|
||||
comparator: -'mtime'
|
||||
|
||||
});
|
||||
|
@@ -9,7 +9,7 @@ define([
|
||||
model: PubRepo,
|
||||
url: app.pageOptions.pubReposUrl,
|
||||
|
||||
comparator: -'mtime',
|
||||
comparator: -'mtime'
|
||||
|
||||
});
|
||||
|
||||
|
@@ -7,7 +7,7 @@ define([
|
||||
|
||||
var GroupRepo = Repo.extend({
|
||||
defaults: {
|
||||
permission: "r",
|
||||
permission: "r"
|
||||
}
|
||||
});
|
||||
|
@@ -7,7 +7,7 @@ define([
|
||||
|
||||
var GroupRepo = Repo.extend({
|
||||
defaults: {
|
||||
permission: "r",
|
||||
permission: "r"
|
||||
}
|
||||
});
|
||||
|
||||
|
@@ -35,7 +35,6 @@ define([
|
||||
Common.prepareApiCsrf();
|
||||
Common.initAccountPopup();
|
||||
Common.initNoticePopup();
|
||||
Common.getContacts();
|
||||
|
||||
this.dirView = new DirView();
|
||||
|
||||
@@ -50,6 +49,9 @@ define([
|
||||
}
|
||||
|
||||
$('#info-bar .close').click(Common.closeTopNoticeBar);
|
||||
$('#top-browser-tip .close').click(function () {
|
||||
$('#top-browser-tip').addClass('hide');
|
||||
});
|
||||
},
|
||||
|
||||
switchCurrentView: function(newView) {
|
@@ -35,7 +35,6 @@ define([
|
||||
Common.prepareApiCsrf();
|
||||
Common.initAccountPopup();
|
||||
Common.initNoticePopup();
|
||||
Common.getContacts();
|
||||
|
||||
this.dirView = new DirView();
|
||||
|
||||
@@ -50,6 +49,9 @@ define([
|
||||
}
|
||||
|
||||
$('#info-bar .close').click(Common.closeTopNoticeBar);
|
||||
$('#top-browser-tip .close').click(function () {
|
||||
$('#top-browser-tip').addClass('hide');
|
||||
});
|
||||
},
|
||||
|
||||
switchCurrentView: function(newView) {
|
||||
|
@@ -19,7 +19,7 @@ define([
|
||||
var baseAttrs = AddRepoView.prototype.newAttributes.apply(this);
|
||||
|
||||
return _.extend(baseAttrs, {'permission': $('select[name=permission]', this.$el).val()});
|
||||
},
|
||||
}
|
||||
|
||||
});
|
||||
|
@@ -19,7 +19,7 @@ define([
|
||||
var baseAttrs = AddRepoView.prototype.newAttributes.apply(this);
|
||||
|
||||
return _.extend(baseAttrs, {'permission': $('select[name=permission]', this.$el).val()});
|
||||
},
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
@@ -37,7 +37,7 @@ define([
|
||||
render: function () {
|
||||
this.$el.html(this.template(this.model.toJSON()));
|
||||
return this;
|
||||
},
|
||||
}
|
||||
|
||||
});
|
||||
|
@@ -37,7 +37,7 @@ define([
|
||||
render: function () {
|
||||
this.$el.html(this.template(this.model.toJSON()));
|
||||
return this;
|
||||
},
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
@@ -19,7 +19,7 @@ define([
|
||||
var baseAttrs = AddRepoView.prototype.newAttributes.apply(this);
|
||||
|
||||
return _.extend(baseAttrs, {'permission': $('select[name=permission]', this.$el).val()});
|
||||
},
|
||||
}
|
||||
|
||||
});
|
||||
|
@@ -19,7 +19,7 @@ define([
|
||||
var baseAttrs = AddRepoView.prototype.newAttributes.apply(this);
|
||||
|
||||
return _.extend(baseAttrs, {'permission': $('select[name=permission]', this.$el).val()});
|
||||
},
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
@@ -608,7 +608,7 @@ define([
|
||||
op_type: op,
|
||||
obj_type: '',
|
||||
obj_name: '',
|
||||
show_other_repos: !dir.encrypted,
|
||||
show_other_repos: !dir.encrypted
|
||||
}));
|
||||
form.modal({appendTo:'#main', autoResize:true, focus:false});
|
||||
$('#simplemodal-container').css({'width':'auto', 'height':'auto'});
|
@@ -608,7 +608,7 @@ define([
|
||||
op_type: op,
|
||||
obj_type: '',
|
||||
obj_name: '',
|
||||
show_other_repos: !dir.encrypted,
|
||||
show_other_repos: !dir.encrypted
|
||||
}));
|
||||
form.modal({appendTo:'#main', autoResize:true, focus:false});
|
||||
$('#simplemodal-container').css({'width':'auto', 'height':'auto'});
|
||||
|
@@ -60,7 +60,7 @@ define([
|
||||
Common.feedback(err, 'error');
|
||||
}
|
||||
});
|
||||
},
|
||||
}
|
||||
|
||||
});
|
||||
|
@@ -60,7 +60,7 @@ define([
|
||||
Common.feedback(err, 'error');
|
||||
}
|
||||
});
|
||||
},
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
@@ -14,7 +14,7 @@ define([
|
||||
el: $('#repo-tabs'),
|
||||
|
||||
events: {
|
||||
'click #sub-lib-create': 'createRepo',
|
||||
'click #sub-lib-create': 'createRepo'
|
||||
},
|
||||
|
||||
initialize: function(options) {
|
@@ -14,7 +14,7 @@ define([
|
||||
el: $('#repo-tabs'),
|
||||
|
||||
events: {
|
||||
'click #sub-lib-create': 'createRepo',
|
||||
'click #sub-lib-create': 'createRepo'
|
||||
},
|
||||
|
||||
initialize: function(options) {
|
||||
|
@@ -56,7 +56,7 @@ define([
|
||||
hideAction: function() {
|
||||
this.$el.removeClass('hl');
|
||||
this.$el.find('.op-icon').addClass('vh');
|
||||
},
|
||||
}
|
||||
});
|
||||
|
||||
return SharedRepoView;
|
@@ -56,7 +56,7 @@ define([
|
||||
hideAction: function() {
|
||||
this.$el.removeClass('hl');
|
||||
this.$el.find('.op-icon').addClass('vh');
|
||||
},
|
||||
}
|
||||
});
|
||||
|
||||
return SharedRepoView;
|
||||
|
@@ -21,11 +21,10 @@ define([
|
||||
},
|
||||
|
||||
render: function () {
|
||||
var data = this.model.toJSON(),
|
||||
file_name = data['file_name'];
|
||||
var data = this.model.toJSON();
|
||||
|
||||
data['is_img'] = Common.imageCheck(file_name);
|
||||
data['encoded_path'] = Common.encodePath(file_name);
|
||||
data['is_img'] = Common.imageCheck(data['file_name']);
|
||||
data['encoded_path'] = Common.encodePath(data['path']);
|
||||
|
||||
this.$el.html(this.template(data));
|
||||
return this;
|
@@ -21,11 +21,10 @@ define([
|
||||
},
|
||||
|
||||
render: function () {
|
||||
var data = this.model.toJSON(),
|
||||
file_name = data['file_name'];
|
||||
var data = this.model.toJSON();
|
||||
|
||||
data['is_img'] = Common.imageCheck(file_name);
|
||||
data['encoded_path'] = Common.encodePath(file_name);
|
||||
data['is_img'] = Common.imageCheck(data['file_name']);
|
||||
data['encoded_path'] = Common.encodePath(data['path']);
|
||||
|
||||
this.$el.html(this.template(data));
|
||||
return this;
|
||||
|
Reference in New Issue
Block a user