在vtiger crm中显示自定义弹出窗口

时间:2018-07-02 19:35:32

标签: vtiger vtigercrm

当用户在vtiger crm中打开名字为回文,名字为semordnilap的联系人时,我想显示一个弹出框。

1 个答案:

答案 0 :(得分:1)

如果要在编辑视图或详细信息视图上打开弹出窗口,可以使用Jqueryconfirm库。

$.confirm({
    title: 'Confirm!',
    content: 'Simple confirm!',
    buttons: {
        confirm: function () {
            $.alert('Confirmed!');
        },
        cancel: function () {
            $.alert('Canceled!');
        },
        somethingElse: {
            text: 'Something else',
            btnClass: 'btn-blue',
            keys: ['enter', 'shift'],
            action: function(){
                $.alert('Something else?');
            }
        }
    }
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.0.1/jquery.min.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jquery-confirm/3.3.0/jquery-confirm.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-confirm/3.3.0/jquery-confirm.min.js"></script>

根据需要,使用文档中显示的函数在事件上编写jQuery函数。