docs upd
Fix: type of popup was read from "type" attribute of target element by mistake, closes #316