mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-02 15:38:15 +00:00
modified js for IE
This commit is contained in:
@@ -42,7 +42,7 @@ define([
|
||||
// Generate the attributes for a new GroupRepo item.
|
||||
newAttributes: function() {
|
||||
return {
|
||||
name: $('input[name=repo_name]', this.$el).val().trim(),
|
||||
name: $.trim($('input[name=repo_name]', this.$el).val()),
|
||||
encrypted: $('#encrypt-switch', this.$el).parent().hasClass('checkbox-checked'),
|
||||
passwd1: $('input[name=passwd]', this.$el).val(),
|
||||
passwd2: $('input[name=passwd_again]', this.$el).val(),
|
||||
|
@@ -99,6 +99,7 @@ define([
|
||||
dir.setPath(category, repo_id, path);
|
||||
var _this = this;
|
||||
dir.fetch({
|
||||
cache: false,
|
||||
reset: true,
|
||||
data: {'p': path},
|
||||
success: function (collection, response, opts) {
|
||||
@@ -893,6 +894,7 @@ define([
|
||||
_this = this;
|
||||
dir.last_start = start;
|
||||
dir.fetch({
|
||||
cache: false,
|
||||
remove: false,
|
||||
data: {
|
||||
'p': dir.path,
|
||||
|
@@ -93,6 +93,7 @@ define([
|
||||
var _this = this;
|
||||
this.repos.setGroupID(group_id);
|
||||
this.repos.fetch({
|
||||
cache: false,
|
||||
reset: true,
|
||||
data: {from: 'web'},
|
||||
success: function (collection, response, opts) {
|
||||
|
@@ -75,6 +75,7 @@ define([
|
||||
$loadingTip.show();
|
||||
var _this = this;
|
||||
this.repos.fetch({
|
||||
cache: false, // for IE
|
||||
reset: true,
|
||||
success: function (collection, response, opts) {
|
||||
},
|
||||
|
@@ -106,6 +106,7 @@ define([
|
||||
$loadingTip.show();
|
||||
var _this = this;
|
||||
this.repos.fetch({
|
||||
cache: false,
|
||||
reset: true,
|
||||
success: function (collection, response, opts) {
|
||||
},
|
||||
|
Reference in New Issue
Block a user