mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-17 15:53:28 +00:00
fix repo create error
This commit is contained in:
@@ -33,7 +33,7 @@ define([
|
|||||||
create: function(model, options) {
|
create: function(model, options) {
|
||||||
// override default create url
|
// override default create url
|
||||||
options = options ? _.clone(options) : {};
|
options = options ? _.clone(options) : {};
|
||||||
options.url = this.url + '?from=web';
|
options.url = this.url() + '?from=web';
|
||||||
|
|
||||||
//call Backbone's create
|
//call Backbone's create
|
||||||
return Backbone.Collection.prototype.create.call(this, model, options);
|
return Backbone.Collection.prototype.create.call(this, model, options);
|
||||||
|
Reference in New Issue
Block a user