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,
|
||||
url: app.pageOptions.pubReposUrl,
|
||||
|
||||
comparator: -'mtime',
|
||||
comparator: -'mtime'
|
||||
|
||||
});
|
||||
|
||||
|
@@ -7,7 +7,7 @@ define([
|
||||
|
||||
var GroupRepo = Repo.extend({
|
||||
defaults: {
|
||||
permission: "r",
|
||||
permission: "r"
|
||||
}
|
||||
});
|
||||
|
||||
|
@@ -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;
|
||||
},
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
@@ -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'});
|
||||
|
@@ -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) {
|
||||
|
@@ -56,7 +56,7 @@ define([
|
||||
hideAction: function() {
|
||||
this.$el.removeClass('hl');
|
||||
this.$el.find('.op-icon').addClass('vh');
|
||||
},
|
||||
}
|
||||
});
|
||||
|
||||
return SharedRepoView;
|
||||
|
@@ -18,7 +18,7 @@ require.config({
|
||||
'jquery'
|
||||
],
|
||||
exports: 'Backbone'
|
||||
},
|
||||
}
|
||||
},
|
||||
paths: {
|
||||
'jquery': 'lib/jquery',
|
||||
|
Reference in New Issue
Block a user