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