parent
dea290ef6e
commit
0a7683292a
|
@ -41,5 +41,6 @@ const EVENT = {
|
|||
OPTS_CHANGE : 'octotree:change',
|
||||
VIEW_READY : 'octotree:ready',
|
||||
VIEW_CLOSE : 'octotree:close',
|
||||
FETCH_ERROR : 'octotree:error'
|
||||
FETCH_ERROR : 'octotree:error',
|
||||
PJAX_RELOAD : 'pjax:reload'
|
||||
}
|
||||
|
|
|
@ -72,6 +72,7 @@ $(document).ready(() => {
|
|||
.on(EVENT.LAYOUT_CHANGE, layoutChanged)
|
||||
.on(EVENT.TOGGLE, layoutChanged)
|
||||
.on(EVENT.LOC_CHANGE, () => tryLoadRepo())
|
||||
.on(EVENT.PJAX_RELOAD, (e) => e.preventDefault())
|
||||
|
||||
$sidebar
|
||||
.width(parseInt(store.get(STORE.WIDTH)))
|
||||
|
|
Loading…
Reference in New Issue