Subversion Repositories DevTools

Rev

Rev 7022 | Rev 7243 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7022 Rev 7240
Line 328... Line 328...
328
//      onLoad  - Function name to call after load
328
//      onLoad  - Function name to call after load
329
//      class   - Optional class to add to the dialog
329
//      class   - Optional class to add to the dialog
330
//
330
//
331
function vixDialog( theURL, usrOptions ) {
331
function vixDialog( theURL, usrOptions ) {
332
 
332
 
-
 
333
    $("body").addClass("cursor-wait");
-
 
334
 
333
    var options = $.extend({title : 'Dialog '}, usrOptions,);
335
    var options = $.extend({title : 'Dialog ', width : 300}, usrOptions,);
334
 
336
 
335
	vixIframe.parent = this;
337
	vixIframe.parent = this;
336
	vixIframe.pagetitle = options.title;
338
	vixIframe.pagetitle = options.title;
337
	vixIframe.url = theURL;
339
	vixIframe.url = theURL;
338
 
340
 
Line 341... Line 343...
341
    $dialog.load( theURL, function(){
343
    $dialog.load( theURL, function(){
342
        var $dialog2 = $dialog.dialog({
344
        var $dialog2 = $dialog.dialog({
343
            autoOpen: true,
345
            autoOpen: true,
344
            modal: true,
346
            modal: true,
345
            height : 'auto', 
347
            height : 'auto', 
346
            //width : 'auto',
348
            width : options.width,
347
            resizable: true,
349
            resizable: true,
348
            position : { my:'top', at: 'top+100', of : window },
350
            position : { my:'top', at: 'top+100', of : window },
349
            dialogClass: options.class,
351
            dialogClass: options.class,
350
            minHeight: 10,
352
            minHeight: 10,
351
            title: 'Loading - ' + vixIframe.pagetitle,
353
            title: 'Loading - ' + vixIframe.pagetitle,
-
 
354
            open: function(event, ui){
-
 
355
                $("body").removeClass("cursor-wait");
-
 
356
            },
352
            close: function(event, ui){
357
            close: function(event, ui){
353
                //console.log('closing dialog');
358
                //console.log('closing dialog');
354
                $(this).dialog("destroy");
359
                $(this).dialog("destroy");
355
                vixIframe = {};
360
                vixIframe = {};
356
                $(this).remove();
361
                $(this).remove();