Coder Social home page Coder Social logo

dialog.js's Introduction

sufangyu.github.io

个人静态博客说明

dialog.js's People

Contributors

amiraslanaslani avatar sufangyu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

dialog.js's Issues

306行,delete是关键字

buttonText : {
ok : '确定',
cancel : '取消',
delete : '删除'
},
delete是关键字,且没有使用,是否可以移除

onClickOk方法返回false为啥不能阻止对话框关闭

我需要验证一个表单,当onClickOk返回return false,不能阻止关闭动作了
$.dialog({ type : 'confirm', titleText:'', html:'', onClickOk:function(){ if($.trim($('#xxx').val()) == ''){ alert('该字段不能为空') return false; }else{ ... } } });

问题

弹出框之后背景都变成了白色

有文本框时不能输入

发现contentHtml有文本框时,在手机(iphone)上不能输入,请问如何解决
$.dialog({ type : 'confirm', contentHtml : '<input type="text" /> ', onClickOk : function(){ alert('你点了确定~~'); } });

配合其他插件使用时有冲突

页面上同时使用了dialog.js和一个前端markdown的插件(markdown-plus.min.js):http://mdp.tylingsoft.com/
dialog.js使用的是confirm类型,但是click之后提示:Uncaught TypeError: $.dialog is not a function

调试时能看到$符号使用的并不是dialog.js内部的,而是markdown-plus.min.js内的对象。

是否有办法避免这种冲突?

ajax 的时候不用能两个 dialog吗?

$.ajax({
type:'post',
url:url,
beforeSend:function () {
$.dialog({
type : 'info',
infoText : '加载中…',
infoIcon : 'images/icon/loading.gif',
autoClose : 2500
});
},
success:function (msg) {
$.dialog.close();

                    if(msg.state == 'fail'){
                        $.dialog({
                            contentHtml : msg.info,
                        });
                    }
                }
            })

这种情况下,只显示 beforeSend 里面的 loading ,无法显示 success 里面的 dialog !

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.