Javascript console.log$按钮[data remodal action='confirm']。单击;此操作将我重定向到其他现有Remodal,并确认错误的模态。。点击按钮效果非常好。我将更新结果。我更改了from=$e.currentTarget.attrd

Javascript console.log$按钮[data remodal action='confirm']。单击;此操作将我重定向到其他现有Remodal,并确认错误的模态。。点击按钮效果非常好。我将更新结果。我更改了from=$e.currentTarget.attrd,javascript,html,remodal,Javascript,Html,Remodal,console.log$按钮[data remodal action='confirm']。单击;此操作将我重定向到其他现有Remodal,并确认错误的模态。。点击按钮效果非常好。我将更新结果。我更改了from=$e.currentTarget.attrdata-remodal-id;to from=window.location.hash.substr1,但仍然相同,它会打开不同的remodal。 $(document).on('opened', '.remodal', function()

console.log$按钮[data remodal action='confirm']。单击;此操作将我重定向到其他现有Remodal,并确认错误的模态。。点击按钮效果非常好。我将更新结果。我更改了from=$e.currentTarget.attrdata-remodal-id;to from=window.location.hash.substr1,但仍然相同,它会打开不同的remodal。
$(document).on('opened', '.remodal', function() {
  $("div[data-remodal-id='myremodal']" ).on('keydown', function(e) {
    if (e.which == 13) {
      $("button[data-remodal-action='confirm']" ).click();
    }
  });
});
// Handles the keydown event
$(document).on('keydown.' + NAMESPACE, function(e) {
  if (current && current.state === STATES.OPENED) {
    if (current.settings.closeOnEscape && e.keyCode === 27) {
      current.close();
    } else if (current.settings.confirmOnEnter && e.keyCode === 13) {
      current.close(STATE_CHANGE_REASONS.CONFIRMATION);
    }
  }
});