Advertisement
Guest User

Untitled

a guest
Jun 29th, 2017
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. $('.qxfp_btn1').on('click',function(){
  2. var a = $('#qxfp_btnC');//点击弹出,有自定义函数
  3. var dialog = art.dialog({
  4. title:"权限分配",
  5. content:a[0], //弹出框的内容
  6. width:'700px', //弹出框的宽度
  7. drag:true, //弹出框是否可移动,默认为false
  8. lock:true, //弹出框是否可移动,默认为true,只当有lock为true时,才出有背景的出现
  9. //maskClick:false,
  10. initialize:function(){
  11. var That = this;
  12. var btnTue = a.find("a[true]");
  13. var btnFalse = a.find('a[false]');
  14. btnTue&&btnTue.off('click');
  15. btnTue&&btnTue.on('click',function(){
  16. art.tips({
  17. type:1,
  18. content:'发表成功!',
  19. time:'20000',
  20. lock:true//设置为false的时候没有背景
  21. })
  22. //dialog.close();
  23. });
  24. btnFalse&&btnFalse.on('click',function(){
  25. dialog.close();
  26. });
  27. }//自定义函数
  28. });
  29. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement