weevent-broker/src/test/java/com/webank/weevent/sample/OverSockjs/js/live-demo.js
// check publish-part input is empty
check publish-part input is empty
check publish - part input is empty
function  checkPublishInput () {
    var index = 0
    $('.error_type').hide()
    $('.publish-part .warningbox').css('opacity', 0)
    $('.publish-part .checked').each(function(){
        if($(this).val() == '') {
            $(this).parent().children('.warningbox').css('opacity', 1)
            index++
        }else{
            $(this).parent().children('.warningbox').css('opacity', 0)
        }
    })
    return index === 0;
}
function checkPublishInput ( ) { var index = 0 $ ( '.error_type' ) . hide ( ) $ ( '.publish-part .warningbox' ) . css ( 'opacity' , 0 ) $ ( '.publish-part .checked' ) . each ( function ( ) { if ( $ ( this ) . val ( ) == '' ) { $ ( this ) . parent ( ) . children ( '.warningbox' ) . css ( 'opacity' , 1 ) index ++ } else { $ ( this ) . parent ( ) . children ( '.warningbox' ) . css ( 'opacity' , 0 ) } } ) return index === 0 ; }
check publish-part input is empty
check publish - part input is empty