JQuery Easyui Pop-Up confirmation dialog box (Confirm action ...)

Source: Internet
Author: User

Because of the reasons for the graduation design, in the initial design of the system without considering the correctness of the function, so many of the functions are not added to verify and confirm the operation, to the operation of some bad feeling (may be wrong Click, the data do not delete, or increase), so found some information on the Internet, the following are two ways:

  

1 //Announcement Review2 function Checknotice ()3     {4var row = $ (' #mydg '). DataGrid (' getselected '); 5         if(row) {6             if(Row. tstatus== "Not approved"){7                 8$.messager.confirm (' Continue ', ' OK to perform the issued operation? '),         9 function (r) {Ten                     if(r) { One $.ajax ({ AURL: ' Noticeaction_checknotice.action ', -Method: "Post", -DataType: "HTML", the data:{ - Noticeid:row. Tnoticeid, - Ntitle:row. Ttitle, - Ncontent:row. Tcontent, + Nadminid:row. Tadminid, - Nadddate:row. Tadddate, + Nstatus:row. Tstatus, A Nvisitnum:row. Tvisitnum at                                    }, - success:function (data) { -                                        if(data) -                                            { -SHOWMYMSG (' Message management ', ' messaging success! ')); -$ (' #mydg '). DataGrid (' Reload '); in                                 -                                            } to                                        Else{ +SHOWMYMSG (' Message management ', ' Messaging failed! ')); -                                        } the                                     *                     } $                 });Panax Notoginseng                     -                        } the                    });  +}Else{ ASHOWMYMSG (' Message Management ', ' Bulletin approved! ')); the                }            +}Else{ -SHOWMYMSG (' Message management ', ' Please select a data audit! ')); $         } $}

May not write very well, because I am also small white.

To believe: programming is a

Pre: 90% (hand force) +10% (mental)------------------> Self-feeling. Ha ha

  

JQuery Easyui Pop-Up confirmation dialog box (Confirm action ...)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.