Browse Source

CategoryOverpass: after onUpdate re-render details page (if shown)

master
parent
commit
ba0a67ad2b
  1. 4
      src/CategoryOverpass.js
  2. 2
      src/index.js

4
src/CategoryOverpass.js

@ -94,6 +94,10 @@ function CategoryOverpass (id, data) {
}
this.updatePopupContent(ob, ob.popup)
if (document.getElementById('content').className === 'details') {
showDetails(ob, this)
}
}.bind(this)
p = document.createElement('div')

2
src/index.js

@ -205,7 +205,7 @@ function show (id, options, callback) {
})
}
function showDetails (data, category) {
window.showDetails = function (data, category) {
var div, h, dt, dd
var k
var dom = document.getElementById('contentDetails')

Loading…
Cancel
Save