JQuery shell masking task

I am trying to use the following function with my API. It works, but the background is not masked. What's wrong?

dialog: function(message) { this.OCache = $('<div class="modal">'+ message+'</div>').appendTo('body').overlay ({top: 0,mask:{color: '#000',loadSpeed:200,opacity:0.5},closeOnClick:true,load:true}); } 

and this is css for modal block

  .modal { display:none; width:400px; background-color:#000; border:1px solid #fff; padding:10px 15px; display:none; color:#fff; text-align:left; font-size:12px; /* outline radius for mozilla/firefox only */ opacity:0.8; -moz-box-shadow:0 0 10px #000; -webkit-box-shadow:0 0 10px #000; } 
+7
javascript
source share
2 answers

For this, you will need toolbox.expose.js.

+11
source share

Overlay will not work only with the Ui.Overlay.js file. You also need to enable toolbox.expose.js.

+3
source share

All Articles