Permalink
Browse files

fix yui store for ie7

  • Loading branch information...
jpmckinney committed Feb 17, 2012
1 parent 2ee3392 commit 43c93cc7eb1e98f37241d8a182d3807dcab87563
Showing with 17 additions and 3 deletions.
  1. +17 −3 widgets/yui/ParameterYUIStore.js
@@ -46,6 +46,16 @@ AjaxSolr.ParameterYUIStore = AjaxSolr.ParameterStore.extend(
*/
initialized: false,
+ /**
+ * Whether the parameter store is curring loading state.
+ *
+ * @field
+ * @private
+ * @type Boolean
+ * @default false
+ */
+ loading: false,
+
/**
* Whether the parameter store is curring saving state.
*
@@ -64,8 +74,10 @@ AjaxSolr.ParameterYUIStore = AjaxSolr.ParameterStore.extend(
var self = this;
YAHOO.util.History.register(this.module, YAHOO.util.History.getBookmarkedState(this.module) || this.exposedString(), function () {
if (!self.saving) {
+ self.loading = true;
self.load();
self.manager.doRequest();
+ self.loading = false;
}
});
YAHOO.util.History.onReady(function () {
@@ -81,9 +93,11 @@ AjaxSolr.ParameterYUIStore = AjaxSolr.ParameterStore.extend(
* Stores the values of the exposed parameters in the YUI History Manager.
*/
save: function () {
- this.saving = true;
- YAHOO.util.History.navigate(this.module, this.exposedString());
- this.saving = false;
+ if (!self.loading) {
+ this.saving = true;
+ YAHOO.util.History.navigate(this.module, this.exposedString());
+ this.saving = false;
+ }
},
/**

0 comments on commit 43c93cc

Please sign in to comment.