Subversion Repositories DevTools

Rev

Rev 5190 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5190 Rev 5207
Line 89... Line 89...
89
//  Note: will return BEFORE the user makes a selection
89
//  Note: will return BEFORE the user makes a selection
90
//  Returns a Defereed object that will be rejected when the dialog is closed.
90
//  Returns a Defereed object that will be rejected when the dialog is closed.
91
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
91
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
92
function vixAlert(text){
92
function vixAlert(text){
93
     var dbo = $.Deferred();
93
     var dbo = $.Deferred();
94
     $( "<div>Alert</div>" ).dialog({
94
     var dd = $( "<div>Alert</div>" ).dialog({
95
        resizable: true,
95
        resizable: true,
96
        height: 'auto',
96
        height: 'auto',
97
        width : 'auto',
97
        width : 'auto',
98
        modal: true,
98
        modal: true,
99
        position: { my: "top", at: "top+100", of: window },
-
 
100
        title:'Alert',
99
        title:'Alert',
101
        open: function() {
100
        open: function() {
102
            $(this).html('<img src="images/i_critical.gif" style="float:left; margin:0 7px 20px 0;">' + text);
101
            $(this).html('<img src="images/i_critical.gif" style="float:left; margin:0 7px 20px 0;">' + text);
103
        },
102
        },
104
        close : function() {
103
        close : function() {
Line 109... Line 108...
109
            "Ok": function() {
108
            "Ok": function() {
110
                $(this).dialog("close");
109
                $(this).dialog("close");
111
            }
110
            }
112
        }
111
        }
113
     });
112
     });
-
 
113
     // Once the dialog has been instantiated the autosize dimensions are known
-
 
114
     // and the dislog can be correctly positioned
-
 
115
     dd.dialog("widget").position({ my: "top", at: "top+100", of: window });
-
 
116
 
-
 
117
     return dbo;
114
}
118
}
115
 
119
 
116
 
120