layer closed to prevent the default event

layer closed to prevent the default event

.post $ ( "reportContent / updatePre.do", {ID: ID}, function (STR) { 
          layer.open ({ 
            title: 'edit report' , 
            type: . 1 , 
            MaxMin: to true , 
            Shade: [ 0.8, '# 444 ' ], 
            Area: ' 1000px ' , 
            Content: str, // . Note that, if the Object is str, then the required characters splicing 
            Success: function (Data) { 
                UED = UE.getEditor (' Editor ', {height: 500 } ); 
                ued.ready ( function () { 
                      CON= Ued.getAllHtml (); 
                 }); 
                // ue.setHeight (500); 
            }, 
            End: function () { 
                resetForm (); 
            }, 
            Cancel: function (index) { 
            layer.confirm ( 'whether to save the current data? ', {btn: [' yes', 'No']}, function () { 
            document.getElementById ( "myModal" ) .submit ();   
            }, function () { 
            layer.closeAll (); 
            }); 
            return  to false ; 
            } 
        }); 
    });

 

@. Posted 2017-06-07 14:30 small day yy_sina read ( ... ) Comments ( ... ) edit collections
Published 42 original articles · won praise 4 · Views 4625

Guess you like

Origin blog.csdn.net/lucasxt/article/details/90259609