File tree Expand file tree Collapse file tree 2 files changed +4
-48
lines changed
src/org/opensolaris/opengrok/web Expand file tree Collapse file tree 2 files changed +4
-48
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ public String toHtml() {
125
125
SCRIPTS .put ("jquery-tablesorter" , new FileScript ("js/jquery-tablesorter-2.26.6.min.js" , 12 ));
126
126
SCRIPTS .put ("tablesorter-parsers" , new FileScript ("js/tablesorter-parsers-0.0.1.js" , 13 ));
127
127
SCRIPTS .put ("searchable-option-list" , new FileScript ("js/searchable-option-list-2.0.3.min.js" , 14 ));
128
- SCRIPTS .put ("utils" , new FileScript ("js/utils-0.0.10 .js" , 15 ));
128
+ SCRIPTS .put ("utils" , new FileScript ("js/utils-0.0.11 .js" , 15 ));
129
129
SCRIPTS .put ("repos" , new FileScript ("js/repos-0.0.1.js" , 20 ));
130
130
SCRIPTS .put ("diff" , new FileScript ("js/diff-0.0.1.js" , 20 ));
131
131
}
Original file line number Diff line number Diff line change 164
164
} ) ( window , window . jQuery ) ;
165
165
166
166
( function ( window , $ ) {
167
-
168
167
var hash = function ( ) {
169
168
var inner = {
170
169
self : this ,
176
175
clickSelector : '{parent} a.l, {parent} a.hl' ,
177
176
parent : 'div#src' ,
178
177
autoScroll : true ,
179
- autoScrollDuration : 500 ,
180
- tooltip : true
178
+ autoScrollDuration : 500
181
179
} ,
182
180
options : { } ,
183
- $tooltip : null ,
184
181
bindClickHandler : function ( ) {
185
182
$ ( inner . format ( inner . options . clickSelector , { parent : inner . options . parent } ) ) . click ( function ( e ) {
186
183
if ( e . shiftKey ) {
293
290
}
294
291
}
295
292
} ,
296
- tooltip : function ( ) {
297
- if ( ! inner . options . tooltip )
298
- return
299
-
300
- inner . $tooltip = inner . $tooltip ?
301
- inner . $tooltip :
302
- $ ( "<div>Did you know? You can select a range of lines<br /> by clicking on the other while holding shift key.</div>" )
303
- . appendTo ( $ ( "body" ) )
304
- . hide ( )
305
- . addClass ( "tooltip" )
306
- . addClass ( "diff_navigation_style" )
307
-
308
-
309
- $ ( inner . format ( inner . options . clickSelector , { parent : inner . options . parent } ) )
310
- . click ( function ( e ) {
311
- if ( ! inner . options . tooltip )
312
- return
313
- // show box
314
- var $el = $ ( this )
315
- setTimeout ( function ( ) {
316
- inner . $tooltip
317
- . show ( )
318
- . stop ( )
319
- . fadeIn ( )
320
- . fadeOut ( 5000 )
321
- . offset ( {
322
- top : $el . offset ( ) . top + 20 ,
323
- left : $el . offset ( ) . left + $el . width ( ) + 5
324
- } ) ;
325
- } , 300 ) ;
326
- inner . options . tooltip = false ;
327
- } )
328
- }
329
293
} // inner
330
294
331
295
this . init = function ( options ) {
332
- if ( inner . initialized ) {
296
+ if ( inner . initialized ) {
333
297
return this ;
334
298
}
335
-
336
299
inner . options = $ . extend ( inner . defaults , options , { } )
337
-
300
+
338
301
$ ( window ) . on ( "hashchange" , inner . reload )
339
-
340
302
inner . reload ( )
341
-
342
- inner . tooltip ( )
343
-
344
303
inner . bindClickHandler ( )
345
-
346
304
inner . scroll ( )
347
-
348
305
inner . initialized = true
349
-
350
306
return this ;
351
307
}
352
308
}
You can’t perform that action at this time.
0 commit comments