File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 141141 var url = $ ( this ) . attr ( 'data-optimized' ) ;
142142 console . log ( 'I clicked the eye' ) ;
143143 var file = url . substring ( url . indexOf ( window . location . host ) + window . location . host . length ) ;
144- $ ( `a[rel='${ file } '` ) . trigger ( 'click' ) ;
144+ showModal ( file ) ;
145+ // $(`a[rel='${file}'`).trigger('click');
145146
146147 } ) ;
147148 $ ( '#uploadCompareSideBySide' ) . on ( 'click' , function ( e ) {
171172
172173 function showModal ( file ) {
173174 var modal = $ ( '#uploadCompare' ) ;
174- // var view = $(`a[rel='${file}'`).siblings('.sp-file-status').children('.optimized-view');
175- var view = $ ( this ) ;
175+ var view = $ ( `a[rel='${ file } '` ) . siblings ( '.sp-file-status' ) . children ( '.optimized-view' ) ;
176+ // var view = $(this);
176177 console . log ( file ) ;
177178
178179 $ ( "#compareSlider" ) . html ( '<img class="uploadCompareOriginal"/><img class="uploadCompareOptimized"/>' ) ;
You can’t perform that action at this time.
0 commit comments