malsup / blockui

jQuery BlockUI Plugin
http://jquery.malsup.com/block/
1.69k stars 506 forks source link

can't make this work #112

Closed estouaway closed 9 years ago

estouaway commented 9 years ago

Hello.

I'm using a template and the config goes like this.

html: < div class="row"> < a class="btn default" id="blockui">Test </ div> < script src="jquery.blockui.min.js"> < script src="ui-blockui.js"> < script> jQuery(document).ready(function () { // initiate layout and plugins UIBlockUI.init(); }); < /script>


JS: var UIBlockUI = function () {

var handleBlock = function () {

    $('#blockui').click(function () {
        $('row').blockUI({
            css: {overflow: 'hidden'}
        });
        });
}
return {
    //main function to initiate the module
    init: function () {
        handleBlock();
    }
};

}();

But it doens't work or do anything... Can you tell me what am I doing wrong? I've seen similar code runing...

estouaway commented 9 years ago

for future reference, in html i was calling the uiblockui function after other scripts and for some reason it was messing this one up.. i just changed the order and it is all right.