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,
url: app.pageOptions.pubReposUrl,
comparator: -'mtime',
comparator: -'mtime'
});

View File

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

View File

@@ -19,7 +19,7 @@ define([
var baseAttrs = AddRepoView.prototype.newAttributes.apply(this);
return _.extend(baseAttrs, {'permission': $('select[name=permission]', this.$el).val()});
},
}
});

View File

@@ -37,7 +37,7 @@ define([
render: function () {
this.$el.html(this.template(this.model.toJSON()));
return this;
},
}
});

View File

@@ -19,7 +19,7 @@ define([
var baseAttrs = AddRepoView.prototype.newAttributes.apply(this);
return _.extend(baseAttrs, {'permission': $('select[name=permission]', this.$el).val()});
},
}
});

View File

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

View File

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

View File

@@ -14,7 +14,7 @@ define([
el: $('#repo-tabs'),
events: {
'click #sub-lib-create': 'createRepo',
'click #sub-lib-create': 'createRepo'
},
initialize: function(options) {

View File

@@ -56,7 +56,7 @@ define([
hideAction: function() {
this.$el.removeClass('hl');
this.$el.find('.op-icon').addClass('vh');
},
}
});
return SharedRepoView;

View File

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