alertifyjs

Alertify dialog disappeared before confirming

眉间皱痕 提交于 2020-01-02 09:59:32
问题 I was just writing some code and I met a problem like this: alertify.dialog("confirm").set( { 'labels': { ok: 'Personal', cancel: 'Share' }, 'message': 'Select target:', 'onok': function() { alertify.confirm($("#dir_select_user").get(0), function() { var i = $("#dir_select_user .dir_selector").val(); t.find(".move_des").val(i); t.find(".move_verify").val("1"); t.submit(); }).set('labels', { ok: alertify.defaults.glossary.ok, cancel: alertify.defaults.glossary.cancel }); }, 'oncancel':

Alertify dialog disappeared before confirming

旧时模样 提交于 2019-12-06 11:53:40
I was just writing some code and I met a problem like this: alertify.dialog("confirm").set( { 'labels': { ok: 'Personal', cancel: 'Share' }, 'message': 'Select target:', 'onok': function() { alertify.confirm($("#dir_select_user").get(0), function() { var i = $("#dir_select_user .dir_selector").val(); t.find(".move_des").val(i); t.find(".move_verify").val("1"); t.submit(); }).set('labels', { ok: alertify.defaults.glossary.ok, cancel: alertify.defaults.glossary.cancel }); }, 'oncancel': function() { alertify.confirm($("#dir_select_share").get(0), function() { var i = $("#dir_select_share .dir