Advertisement
Guest User

Untitled

a guest
Oct 26th, 2016
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. // layer alert 的回调
  2. layer.alert('有了回调', {icon:1},function(index){
  3. //do something
  4. layer.close(index);
  5. });
  6.  
  7. //错误信息放到父框里的最底部
  8. errorPlacement: function (error, element) {
  9. error.appendTo(element.parents('.form-con'));
  10. }
  11.  
  12. // 解决火狐 daterangepicker bug
  13.  
  14. $('#detail').on('show.bs.modal', function () {
  15. $.fn.modal.Constructor.prototype.enforceFocus = function () {};
  16. });
  17.  
  18. // modal 关闭清除表单
  19. $('.modal').on('hidden.bs.modal', function(){
  20. $(this).find('form')[0].reset();
  21. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement