警告不能在Firefox中工作

时间:2017-02-27 20:31:05

标签: javascript firefox alertify

我在我的项目中添加了alertify以增强一些视觉效果,并在浏览器的标准提示上覆盖时间,但是代码在firefox上无法正常工作,请参阅下面的内容:

         xFunction = function() {
         event.preventDefault();
      alertify.confirm("Are you sure? This cant be undone!!?", function(e) {
      if (e) { 
     alertify.success("Asset Discontinued Successfully!!");
      $('#conf').click()  } else {
alertify.success("Nothing was Discontinued!!");
    }
    });
    }

和html

  <form action='Allocated.php' method='post' name='disc' id='conf' >
<input type='submit' name='disc' value='Discontinue Asset' formnovalidate='formnovalidate' id='conf' onclick='return xFunction() ;' />

0 个答案:

没有答案