1
0
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:
llj
2015-06-10 13:43:41 +08:00
parent ee816216ea
commit 8d2054dafd
10 changed files with 10 additions and 10 deletions

View File

@@ -9,7 +9,7 @@ define([
model: PubRepo, model: PubRepo,
url: app.pageOptions.pubReposUrl, url: app.pageOptions.pubReposUrl,
comparator: -'mtime', comparator: -'mtime'
}); });

View File

@@ -7,7 +7,7 @@ define([
var GroupRepo = Repo.extend({ var GroupRepo = Repo.extend({
defaults: { defaults: {
permission: "r", permission: "r"
} }
}); });

View File

@@ -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()});
}, }
}); });

View File

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

View File

@@ -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()});
}, }
}); });

View File

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

View File

@@ -60,7 +60,7 @@ define([
Common.feedback(err, 'error'); Common.feedback(err, 'error');
} }
}); });
}, }
}); });

View File

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

View File

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

View File

@@ -18,7 +18,7 @@ require.config({
'jquery' 'jquery'
], ],
exports: 'Backbone' exports: 'Backbone'
}, }
}, },
paths: { paths: {
'jquery': 'lib/jquery', 'jquery': 'lib/jquery',