mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-01 15:09:14 +00:00
[js] bugfix for object
This commit is contained in:
@@ -9,7 +9,7 @@ define([
|
|||||||
model: PubRepo,
|
model: PubRepo,
|
||||||
url: app.pageOptions.pubReposUrl,
|
url: app.pageOptions.pubReposUrl,
|
||||||
|
|
||||||
comparator: -'mtime',
|
comparator: -'mtime'
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@@ -7,7 +7,7 @@ define([
|
|||||||
|
|
||||||
var GroupRepo = Repo.extend({
|
var GroupRepo = Repo.extend({
|
||||||
defaults: {
|
defaults: {
|
||||||
permission: "r",
|
permission: "r"
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@@ -19,7 +19,7 @@ define([
|
|||||||
var baseAttrs = AddRepoView.prototype.newAttributes.apply(this);
|
var baseAttrs = AddRepoView.prototype.newAttributes.apply(this);
|
||||||
|
|
||||||
return _.extend(baseAttrs, {'permission': $('select[name=permission]', this.$el).val()});
|
return _.extend(baseAttrs, {'permission': $('select[name=permission]', this.$el).val()});
|
||||||
},
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@@ -37,7 +37,7 @@ define([
|
|||||||
render: function () {
|
render: function () {
|
||||||
this.$el.html(this.template(this.model.toJSON()));
|
this.$el.html(this.template(this.model.toJSON()));
|
||||||
return this;
|
return this;
|
||||||
},
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@@ -19,7 +19,7 @@ define([
|
|||||||
var baseAttrs = AddRepoView.prototype.newAttributes.apply(this);
|
var baseAttrs = AddRepoView.prototype.newAttributes.apply(this);
|
||||||
|
|
||||||
return _.extend(baseAttrs, {'permission': $('select[name=permission]', this.$el).val()});
|
return _.extend(baseAttrs, {'permission': $('select[name=permission]', this.$el).val()});
|
||||||
},
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@@ -608,7 +608,7 @@ define([
|
|||||||
op_type: op,
|
op_type: op,
|
||||||
obj_type: '',
|
obj_type: '',
|
||||||
obj_name: '',
|
obj_name: '',
|
||||||
show_other_repos: !dir.encrypted,
|
show_other_repos: !dir.encrypted
|
||||||
}));
|
}));
|
||||||
form.modal({appendTo:'#main', autoResize:true, focus:false});
|
form.modal({appendTo:'#main', autoResize:true, focus:false});
|
||||||
$('#simplemodal-container').css({'width':'auto', 'height':'auto'});
|
$('#simplemodal-container').css({'width':'auto', 'height':'auto'});
|
||||||
|
@@ -60,7 +60,7 @@ define([
|
|||||||
Common.feedback(err, 'error');
|
Common.feedback(err, 'error');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@@ -14,7 +14,7 @@ define([
|
|||||||
el: $('#repo-tabs'),
|
el: $('#repo-tabs'),
|
||||||
|
|
||||||
events: {
|
events: {
|
||||||
'click #sub-lib-create': 'createRepo',
|
'click #sub-lib-create': 'createRepo'
|
||||||
},
|
},
|
||||||
|
|
||||||
initialize: function(options) {
|
initialize: function(options) {
|
||||||
|
@@ -56,7 +56,7 @@ define([
|
|||||||
hideAction: function() {
|
hideAction: function() {
|
||||||
this.$el.removeClass('hl');
|
this.$el.removeClass('hl');
|
||||||
this.$el.find('.op-icon').addClass('vh');
|
this.$el.find('.op-icon').addClass('vh');
|
||||||
},
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
return SharedRepoView;
|
return SharedRepoView;
|
||||||
|
@@ -18,7 +18,7 @@ require.config({
|
|||||||
'jquery'
|
'jquery'
|
||||||
],
|
],
|
||||||
exports: 'Backbone'
|
exports: 'Backbone'
|
||||||
},
|
}
|
||||||
},
|
},
|
||||||
paths: {
|
paths: {
|
||||||
'jquery': 'lib/jquery',
|
'jquery': 'lib/jquery',
|
||||||
|
Reference in New Issue
Block a user