File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed
src/javascript/binary/pages/trade Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -219,13 +219,14 @@ var Price = (function() {
219
219
}
220
220
}
221
221
222
- extraInfo [ 'longcode' ] = extraInfo [ 'longcode' ] . replace ( / [ \d \, ] + \. \d \d / , function ( x ) {
223
- return '<b>' + x + '</b>' ;
224
- } ) ;
225
-
226
- description . setAttribute ( 'title' , extraInfo [ 'longcode' ] ) ;
227
- } else {
228
- description . setAttribute ( 'title' , extraInfo [ 'longcode' ] ) ;
222
+ if ( extraInfo [ 'longcode' ] && window . innerWidth > 500 ) {
223
+ extraInfo [ 'longcode' ] = extraInfo [ 'longcode' ] . replace ( / [ \d \, ] + \. \d \d / , function ( x ) {
224
+ return '<b>' + x + '</b>' ;
225
+ } ) ;
226
+ description . setAttribute ( 'title' , extraInfo [ 'longcode' ] ) ;
227
+ } else {
228
+ description . removeAttribute ( 'title' ) ;
229
+ }
229
230
}
230
231
231
232
error . show ( ) ;
@@ -250,12 +251,13 @@ var Price = (function() {
250
251
}
251
252
}
252
253
253
- if ( proposal && proposal [ 'longcode' ] ) {
254
+ if ( proposal && proposal [ 'longcode' ] && window . innerWidth > 500 ) {
254
255
proposal [ 'longcode' ] = proposal [ 'longcode' ] . replace ( / [ \d \, ] + \. \d \d / , function ( x ) {
255
256
return '<b>' + x + '</b>' ;
256
257
} ) ;
257
- description . removeAttribute ( 'title' ) ;
258
258
description . setAttribute ( 'title' , proposal [ 'longcode' ] ) ;
259
+ } else {
260
+ description . removeAttribute ( 'title' ) ;
259
261
}
260
262
261
263
purchase . show ( ) ;
You can’t perform that action at this time.
0 commit comments