Index: branches/RC/core/admin_templates/js/grid_scroller.js =================================================================== diff -u -r9299 -r9359 --- branches/RC/core/admin_templates/js/grid_scroller.js (.../grid_scroller.js) (revision 9299) +++ branches/RC/core/admin_templates/js/grid_scroller.js (.../grid_scroller.js) (revision 9359) @@ -182,7 +182,7 @@ this.Render('main_div_'+this.GridId); return; } - var dot = '
'; + var dot = '
'; document.write(dot); var dot = document.getElementById('my_measure_'+this.GridId); var measure = document.getElementById('my_measure_'+this.GridId); @@ -615,6 +615,7 @@ this.SetLeftHeights(); this.UpdateTotalDimensions(); this.SyncScroll(); + this.ScheduleSaveWidths(); } GridScroller.prototype.ScrollResizeHandles = function() @@ -1054,9 +1055,23 @@ this.Footer = a_footer; } -GridScroller.prototype.SaveWidths = function(prefix, url) +GridScroller.prototype.SaveWidths = function() { + if (!this.SaveURL) return; var w = this.MinWidths.join(':'); - Request.makeRequest(url.replace('#WIDTHS#', w), this.BusyRequest, '', this.successCallback, this.errorCallback, '', this); + Request.makeRequest(this.SaveURL.replace('#WIDTHS#', w), this.BusyRequest, '', this.successCallback, this.errorCallback, '', this); +} +GridScroller.prototype.ScheduleSaveWidths = function() +{ + var obj = this; + if (this.SaveWidthsScheduled && this.SaveWidthsTimer) { + window.clearTimeout(this.SaveWidthsTimer); + this.SaveWidthsTimer = false; + } + this.SaveWidthsScheduled = true; + this.SaveWidthsTimer = window.setTimeout(function() { + obj.SaveWidths(); + obj.SaveWidthsScheduled = false; + }, 800) } \ No newline at end of file