Changeset View
Changeset View
Standalone View
Standalone View
webroot/rsrc/js/phuix/PHUIXFormationColumnView.js
| Show First 20 Lines • Show All 129 Lines • ▼ Show 20 Lines | _onresizeend: function(e) { | ||||
| var width_key = this.getWidthSettingKey(); | var width_key = this.getWidthSettingKey(); | ||||
| if (width_key) { | if (width_key) { | ||||
| this._adjustSetting(width_key, this.getWidth()); | this._adjustSetting(width_key, this.getWidth()); | ||||
| } | } | ||||
| }, | }, | ||||
| _setVisibility: function(visible, e) { | _setVisibility: function(visible, e) { | ||||
| e.kill(); | e.kill(); | ||||
| this.setVisibility(visible); | |||||
| }, | |||||
| toggleVisibility: function() { | |||||
| return this.setVisibility(!this.getIsVisible()); | |||||
| }, | |||||
| setVisibility: function(visible) { | |||||
| this.setIsVisible(visible); | this.setIsVisible(visible); | ||||
| this.repaint(); | this.repaint(); | ||||
| var visible_key = this.getVisibleSettingKey(); | var visible_key = this.getVisibleSettingKey(); | ||||
| if (visible_key) { | if (visible_key) { | ||||
| this._adjustSetting(visible_key, visible ? 1 : 0); | this._adjustSetting(visible_key, visible ? 1 : 0); | ||||
| } | } | ||||
| return this; | |||||
| }, | }, | ||||
| _adjustSetting: function(key, value) { | _adjustSetting: function(key, value) { | ||||
| new JX.Request('/settings/adjust/', JX.bag) | new JX.Request('/settings/adjust/', JX.bag) | ||||
| .setData( | .setData( | ||||
| { | { | ||||
| key: key, | key: key, | ||||
| value: value | value: value | ||||
| Show All 36 Lines | |||||