File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ class="fa fa-list"></i> List</a>
118118 <div class =" modal-header" >
119119 <button type =" button" class =" close" data-dismiss =" modal" aria-label =" Close" ><span
120120 aria-hidden =" true" >× ; </span ></button >
121- <h4 class =" modal-title" id =" fileLabel" >View Fiile </h4 >
121+ <h4 class =" modal-title" id =" fileLabel" >View File </h4 >
122122 </div >
123123 <div class =" modal-body" id =" fileview_body" >
124124
@@ -426,11 +426,22 @@ function resizeImage(x) {
426426 });
427427
428428 function fileView (x ){
429+ var rnd = makeRandom ();
429430 $ (' #fileview_body' ).html (
430- " <img class='img img-responsive center-block' src='{!! Config:: get (' lfm.images_url' ) ! !}" + $ (" #working_dir" ).val () + " /" + x + " '>"
431+ " <img class='img img-responsive center-block' src='{!! Config:: get (' lfm.images_url' ) ! !}" + $ (" #working_dir" ).val () + " /" + x + " ?id= " + rnd + " '>"
431432 );
432433 $ (' #fileViewModal' ).modal ();
433434 }
435+
436+ function makeRandom ()
437+ {
438+ var text = " " ;
439+ var possible = " ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789" ;
440+
441+ for ( var i= 0 ; i < 20 ; i++ )
442+ text += possible .charAt (Math .floor (Math .random () * possible .length ));
443+ return text;
444+ }
434445 </script >
435446</body >
436447</html >
You can’t perform that action at this time.
0 commit comments