1
0
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:
llj
2015-10-08 17:54:59 +08:00
parent 1dfcfc58c1
commit 8dff8a8b2d
5 changed files with 6 additions and 1 deletions

View File

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

View File

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

View File

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

View File

@@ -75,6 +75,7 @@ define([
$loadingTip.show();
var _this = this;
this.repos.fetch({
cache: false, // for IE
reset: true,
success: function (collection, response, opts) {
},

View File

@@ -106,6 +106,7 @@ define([
$loadingTip.show();
var _this = this;
this.repos.fetch({
cache: false,
reset: true,
success: function (collection, response, opts) {
},