Improvements

Former-commit-id: 75aaab2410d4e93a892f1c68d253ecf2c3def92b [formerly d9f37f49e3b705eb7a632b0f6e44cbabdfd296ac] [formerly 5ac5b5223ad348b589861a50f8ee41228a18d13f [formerly 7809b778bb2d65a3faff5dd5f928c1786f227def]]
Former-commit-id: 30bac294d7bf5e875d4fb365321dc1fde16a50df [formerly df3d70ac1c0afcc4c7aed0a8e4ce2d2aa815ee0c]
Former-commit-id: f82ccdf36a7d088cbd2a4a3ada53876e823a64e2
This commit is contained in:
Henrique Dias
2017-06-29 11:34:47 +01:00
parent bff33c2c1e
commit 60ffb88d8e
7 changed files with 198 additions and 161 deletions

View File

@@ -8,10 +8,10 @@ Vue.config.productionTip = false
var $ = (window.info || window.alert('Something is wrong, please refresh!'))
// TODO: keep this here?
document.title = $.req.name
// TODO: keep this here? Maybe on app.vue?
document.title = $.req.data.name
// TODO: keep this here?
// TODO: keep this here? Maybe on app.vue?
window.addEventListener('popstate', (event) => {
event.preventDefault()
event.stopPropagation()
@@ -19,6 +19,12 @@ window.addEventListener('popstate', (event) => {
$.req.kind = ''
$.listing.selected.length = 0
$.listing.selected.multiple = false
// TODO: find a better way to do this. Maybe on app.vue?
window.info.showHelp = false
window.info.showInfo = false
window.info.showDelete = false
window.info.showRename = false
window.info.showMove = false
let request = new window.XMLHttpRequest()
request.open('GET', event.state.url, true)