Subversion Repositories DevTools

Rev

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

Rev 5207 Rev 5227
Line 95... Line 95...
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
        title:'Alert',
99
        title:'Alert',
-
 
100
        position: { my: "top", at: "top+100", of: window },
100
        open: function() {
101
        open: function() {
101
            $(this).html('<img src="images/i_critical.gif" style="float:left; margin:0 7px 20px 0;">' + text);
102
            $(this).html('<img src="images/i_critical.gif" style="float:left; margin:0 7px 20px 0;">' + text);
102
        },
103
        },
103
        close : function() {
104
        close : function() {
104
            $(this).remove();
105
            $(this).remove();
Line 110... Line 111...
110
            }
111
            }
111
        }
112
        }
112
     });
113
     });
113
     // Once the dialog has been instantiated the autosize dimensions are known
114
     // Once the dialog has been instantiated the autosize dimensions are known
114
     // and the dislog can be correctly positioned
115
     // and the dislog can be correctly positioned
-
 
116
     // Note: Appears that we need to position it twice
-
 
117
     //       Once in the dialog creation, and once here
115
     dd.dialog("widget").position({ my: "top", at: "top+100", of: window });
118
     dd.dialog("widget").position({ my: "top", at: "top+100", of: window });
116
 
119
 
117
     return dbo;
120
     return dbo;
118
}
121
}
119
 
122