@@ -111,67 +111,6 @@ Vex.InstallTracker = function(property_id) {
111
111
} ) ( ) ;
112
112
}
113
113
114
- function VexUI ( ) { }
115
-
116
- VexUI . Pulsate = function ( sel ) {
117
- var old_background = $ ( sel ) . css ( 'background' ) ;
118
- var old_color = $ ( sel ) . css ( 'color' ) ;
119
-
120
- $ ( sel ) . css ( 'background' , 'red' ) ;
121
- $ ( sel ) . css ( 'color' , 'yellow' ) ;
122
-
123
- $ ( sel ) . effect ( "pulsate" , { } , 50 , function ( ) {
124
- $ ( sel ) . css ( 'background' , old_background ) ;
125
- $ ( sel ) . css ( 'color' , old_color ) ;
126
- } ) ;
127
- }
128
-
129
- VexUI . MessageBox = function ( sel ) {
130
- this . sel = sel
131
- this . sel_content = sel + " .content"
132
- this . sel_icon = sel + " .ui-icon"
133
- }
134
-
135
- VexUI . MessageBox . prototype . Initialize = function ( ) {
136
- $ ( this . sel ) . dialog ( {
137
- bgiframe : true ,
138
- modal : true ,
139
- autoOpen : false ,
140
- buttons : {
141
- Ok : function ( ) { $ ( this ) . dialog ( 'close' ) }
142
- }
143
- } ) ;
144
- }
145
-
146
- VexUI . MessageBox . prototype . Open = function ( title , message , mode ) {
147
- var boxclass = ""
148
- var icon = "alert"
149
- var state = ""
150
-
151
- if ( mode == "alert" ) {
152
- boxclass = "alert"
153
- icon = "alert"
154
- state = "error"
155
- }
156
-
157
- $ ( this . sel ) . dialog ( "option" , "title" , title ) ;
158
- $ ( this . sel ) . dialog ( "option" , "dialogClass" , boxclass ) ;
159
- $ ( this . sel_content ) . empty ( ) ;
160
- $ ( this . sel_content ) . text ( message ) ;
161
-
162
- $ ( this . sel_icon ) . removeClass ( [ "ui-icon-alert" ] )
163
- $ ( this . sel_icon ) . addClass ( "ui-icon-" + icon ) ;
164
- $ ( this . sel ) . dialog ( "open" ) ;
165
- }
166
-
167
- VexUI . MessageBox . prototype . Close = function ( ) {
168
- $ ( this . sel ) . dialog ( "close" ) ;
169
- }
170
-
171
- VexUI . MessageBox . prototype . Destroy = function ( ) {
172
- $ ( this . sel ) . dialog ( "destroy" ) ;
173
- }
174
-
175
114
// TODO(0xfe): Move these to Vex namespace.
176
115
177
116
function log ( message ) {
0 commit comments