Ver código fonte

Small bug fixes to Modal.

dev
Bryan Miller 7 anos atrás
pai
commit
ad3a1a9ecd
1 arquivos alterados com 1 adições e 3 exclusões
  1. +1
    -3
      app/js/ui/Modal.js

+ 1
- 3
app/js/ui/Modal.js Ver arquivo

}).bind(this)); }).bind(this));


GlobalEvents.listen("modal-submit", (function(target, event){ GlobalEvents.listen("modal-submit", (function(target, event){
if (target !== this.__currentModalEl)
return;
if (!event.hasOwnProperty("subevent")) if (!event.hasOwnProperty("subevent"))
return; return;
var ename = event.subevent; var ename = event.subevent;
ids.forEach((item) => { ids.forEach((item) => {
var id = item.trim(); var id = item.trim();
var el = cel.querySelector("[name='" + id + "']"); var el = cel.querySelector("[name='" + id + "']");
if (el && el.hasOwnProperty("value"))
if (el) // TODO: Check if el is an INPUT node and switch between the node types.
vals[id] = el.value; vals[id] = el.value;
}); });
} }

Carregando…
Cancelar
Salvar