Инструменты пользователя

Инструменты сайта


programming:js:jquery-ui:hide-buttons

Скрыть кнопки Dialog-а

function ButtonDialogState(sIDDialog,sLabel,bEnable){
 //    $("#"+sIDDialog+" ~ .ui-dialog-buttonpane").children("button:contains('"+sLabel+"')").button((bEnable==true) ? "enable" : "disable" );//1.8.2
     $("#"+sIDDialog+" ~ .ui-dialog-buttonpane .ui-dialog-buttonset").children("button:contains('"+sLabel+"')").button((bEnable==true) ? "enable" : "disable" );//1.8.4
}
function showButtonDialog(sIDDialog,sLabel,bvisible){
    if(bvisible==true){
//        $("#"+sIDDialog+" ~ .ui-dialog-buttonpane").children("button:contains('"+sLabel+"')").show();//1.8.2
        $("#"+sIDDialog+" ~ .ui-dialog-buttonpane .ui-dialog-buttonset").children("button:contains('"+sLabel+"')").show();//1.8.4
    }else{
//        $("#"+sIDDialog+" ~ .ui-dialog-buttonpane").children("button:contains('"+sLabel+"')").hide();//1.8.2
        $("#"+sIDDialog+" ~ .ui-dialog-buttonpane .ui-dialog-buttonset").children("button:contains('"+sLabel+"')").hide();//1.8.4
    }
}
programming/js/jquery-ui/hide-buttons.txt · Последнее изменение: 2017/03/27 11:28 — artur

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki