artDialog

来源:互联网 发布:cda数据分析师考试时间 编辑:程序博客网 时间:2024/05/16 11:39
    function editNote(par){        art.dialog({            title: '备注信息',//          drag: false,            resize: false,//          content:document.getElementById('noteDiv'),            content:document.getElementById('noteDivtest'),            ok: function () {                alert(par);                saveNote(this);                this.close();            },//          cancel: true,             cancel:function () {                art.dialog.tips('此次操作没有记录备注信息');            }, //          lock: true,        });    }    function saveNote(that){        var note = $("#noteArea").val();        alert(note);        $.ajax({                type: "POST",                url: "/saveNote",                data: {"note": note},                dataType: "json"//              ,//              success: function (data) {//                  that.content('备注信息保存成功'+data);//              },//              error: function (data) {//                  that.content('备注信息保存失败'+data);//              }            });        document.f1.submit();    }<script type="text/javascript">    function addNoteToUrl(url,note){        var newurl=url;        if(note!=null&&note!=""&&note.length!=0){            if(url.indexOf("?") > 0){                newurl = url+'&note='+note;            }else{                newurl = url+'?note='+note;            }        }        return '<c:url value="'+newurl+'"/>';    }    function deleteRadreplyFun(url){        var note = null;        art.dialog({            title: '备注信息',            drag: false,            resize: false,            content:document.getElementById('noteDiv'),            ok: function () {                note=document.getElementById('noteAreaForALl').value;                var newUrl = addNoteToUrl(url,note);                location.href=encodeURI(newUrl);                this.close();            },            cancel:function () {                art.dialog.tips('此次操作没有记录备注信息',3);                location.href=encodeURI(url);            },                 lock: true,        });    }</script>
0 0