瀏覽代碼

HUE-270. JFrame doesn't sweep content on refresh

Marcus McLaughlin 15 年之前
父節點
當前提交
f61becacf1
共有 1 個文件被更改,包括 3 次插入4 次删除
  1. 3 4
      desktop/core/static/js/Source/CCS/CCS.JFrame.js

+ 3 - 4
desktop/core/static/js/Source/CCS/CCS.JFrame.js

@@ -955,10 +955,9 @@ CCS.JFrame = new Class({
 		this._resetOverflow(target);
 
 		//if we're injecting into the main content body, cleanup and scrollto the top
-		if (target == this.content && !options.noScroll) {
-			this.scroller.toTop();
-			this._sweep(target);
-		}
+		if (!options.noScroll) this.scroller.toTop();
+                if (target == this.content) this._sweep(target);
+
 
 		//if we're injecting into the main content body apply the view classes and remove the old one
 		if (target == this.content) {