diff --git a/static/scripts/app/views/add-repo.js b/static/scripts/app/views/add-repo.js index 72f62250ec..bdad9acab8 100644 --- a/static/scripts/app/views/add-repo.js +++ b/static/scripts/app/views/add-repo.js @@ -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(), diff --git a/static/scripts/app/views/dir.js b/static/scripts/app/views/dir.js index 4e7e68b484..c9944c3f1e 100644 --- a/static/scripts/app/views/dir.js +++ b/static/scripts/app/views/dir.js @@ -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, diff --git a/static/scripts/app/views/group.js b/static/scripts/app/views/group.js index 8aa882a09f..cd51ffa4e3 100644 --- a/static/scripts/app/views/group.js +++ b/static/scripts/app/views/group.js @@ -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) { diff --git a/static/scripts/app/views/myhome-repos.js b/static/scripts/app/views/myhome-repos.js index 19a0049464..2396dd484a 100644 --- a/static/scripts/app/views/myhome-repos.js +++ b/static/scripts/app/views/myhome-repos.js @@ -75,6 +75,7 @@ define([ $loadingTip.show(); var _this = this; this.repos.fetch({ + cache: false, // for IE reset: true, success: function (collection, response, opts) { }, diff --git a/static/scripts/app/views/organization.js b/static/scripts/app/views/organization.js index 6557f3e56d..f5073c4a77 100644 --- a/static/scripts/app/views/organization.js +++ b/static/scripts/app/views/organization.js @@ -106,6 +106,7 @@ define([ $loadingTip.show(); var _this = this; this.repos.fetch({ + cache: false, reset: true, success: function (collection, response, opts) { },