|
|
@ -6,5 +6,6 @@ module.exports = (mode) => { |
|
|
|
window.kade.sort = mode || window.kade.sort === 'Type' ? 'Name' : modes[modes.indexOf(window.kade.sort) + 1]; |
|
|
|
window.kade.sort = mode || window.kade.sort === 'Type' ? 'Name' : modes[modes.indexOf(window.kade.sort) + 1]; |
|
|
|
let sb = document.getElementById('sort-button'); |
|
|
|
let sb = document.getElementById('sort-button'); |
|
|
|
sb.innerHTML = `Sort by: ${window.kade.sort}`; |
|
|
|
sb.innerHTML = `Sort by: ${window.kade.sort}`; |
|
|
|
|
|
|
|
document.getElementById('ctx-sort-by').innerHTML = `Sort by: ${window.kade.sort}`; |
|
|
|
refresh(window.kade.cpath); |
|
|
|
refresh(window.kade.cpath); |
|
|
|
}; |
|
|
|
}; |