File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 44
44
< script src ="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js "> </ script >
45
45
< script >
46
46
$ ( function ( ) {
47
- var plugins = [ ] , base = '//cdn.ravenjs.com/1.1.0 /' , $download = $ ( '#download' ) ;
47
+ var plugins = [ ] , base = '//cdn.ravenjs.com/1.1.1 /' , $download = $ ( '#download' ) ;
48
48
$ ( 'input[type="checkbox"]' ) . on ( 'click' , function ( ) {
49
- var val = $ ( this ) . val ( ) ;
49
+ var val = $ ( this ) . val ( ) , url ;
50
50
if ( $ ( this ) . prop ( 'checked' ) ) {
51
51
plugins . push ( $ ( this ) . val ( ) ) ;
52
52
} else {
53
53
plugins . splice ( plugins . indexOf ( val ) , 1 ) ;
54
54
}
55
55
if ( plugins . length ) {
56
56
plugins . sort ( ) ;
57
- $download . val ( base + plugins . join ( ',' ) + '/raven.min.js' ) ;
57
+ url = base + plugins . join ( ',' ) + '/raven.min.js' ;
58
58
} else {
59
- $download . val ( base + 'raven.min.js' ) ;
59
+ url = base + 'raven.min.js' ;
60
60
}
61
+ $download . val ( url ) ;
61
62
} ) ;
62
63
var defaults = [ 'jquery' , 'native' ] ;
63
64
for ( var i = 0 ; i < defaults . length ; i ++ ) {
You can’t perform that action at this time.
0 commit comments