This repository was archived by the owner on Nov 25, 2020. It is now read-only.
File tree 3 files changed +25
-4
lines changed
gui.ajax/res/js/ui/prototype/util
3 files changed +25
-4
lines changed Original file line number Diff line number Diff line change @@ -967,9 +967,9 @@ Class.create("ShareCenter", {
967
967
<div class="infoPanelLabel">' + MessageHash [ 'share_center.61' ] + '</div>\
968
968
<div class="infoPanelValue"><textarea style="padding: 4px;width:97%;height: 80px;" id="embed_code" readonly="true"></textarea></div>\
969
969
</div>' ) ;
970
+ var dlPath = jsonData [ 'content_filter' ] [ 'filters' ] [ node . getPath ( ) ] ;
971
+ mainCont . down ( "#embed_code" ) . setValue ( "<a href='" + jsonData . minisite . public_link + "?dl=true&file=" + dlPath + "'>Download " + getBaseName ( node . getPath ( ) ) + "</a>" ) ;
970
972
}
971
- var dlPath = jsonData [ 'content_filter' ] [ 'filters' ] [ node . getPath ( ) ] ;
972
- mainCont . down ( "#embed_code" ) . setValue ( "<a href='" + jsonData . minisite . public_link + "?dl=true&file=" + dlPath + "'>Download " + getBaseName ( node . getPath ( ) ) + "</a>" ) ;
973
973
974
974
} else if ( jsonData . minisite ) {
975
975
// MINISITE FOLDER SHARE
@@ -986,8 +986,8 @@ Class.create("ShareCenter", {
986
986
<div class="infoPanelLabel">' + MessageHash [ 'share_center.61' ] + '</div>\
987
987
<div class="infoPanelValue"><textarea style="padding: 4px;width:97%;height: 80px;" id="embed_code" readonly="true"></textarea></div>\
988
988
</div>' ) ;
989
+ mainCont . down ( "#embed_code" ) . setValue ( "<iframe height='500' width='600' style='border:1px solid black;' src='" + jsonData . minisite . public_link + "'></iframe>" ) ;
989
990
}
990
- mainCont . down ( "#embed_code" ) . setValue ( "<iframe height='500' width='600' style='border:1px solid black;' src='" + jsonData . minisite . public_link + "'></iframe>" ) ;
991
991
} else {
992
992
// WORKSPACE FOLDER
993
993
mainCont . update ( '<div class="share_info_panel_main_legend">' + MessageHash [ "share_center.139" + ( jsonData [ 'is_expired' ] ?'b' :'' ) ] + '</div>' ) ;
Original file line number Diff line number Diff line change @@ -472,3 +472,24 @@ function attachMobileScroll(targetId, direction){
472
472
if ( direction == 'horizontal' || direction == 'both' ) overflow [ 'overflowX' ] = 'auto' ;
473
473
$ ( targetId ) . setStyle ( overflow ) ;
474
474
}
475
+
476
+ /**
477
+ * Utilitary to get FlashVersion
478
+ * @returns String
479
+ */
480
+ function getFlashVersion ( ) {
481
+ if ( ! window . PYDIO_DetectedFlashVersion ) {
482
+ var x ;
483
+ if ( navigator . plugins && navigator . mimeTypes . length ) {
484
+ x = navigator . plugins [ "Shockwave Flash" ] ;
485
+ if ( x && x . description ) x = x . description ;
486
+ } else if ( Prototype . Browser . IE ) {
487
+ try {
488
+ x = new ActiveXObject ( "ShockwaveFlash.ShockwaveFlash" ) ;
489
+ x = x . GetVariable ( "$version" ) ;
490
+ } catch ( e ) { }
491
+ }
492
+ window . PYDIO_DetectedFlashVersion = ( typeof ( x ) == 'string' ) ? parseInt ( x . match ( / \d + / ) [ 0 ] ) : 0 ;
493
+ }
494
+ return window . PYDIO_DetectedFlashVersion ;
495
+ }
Original file line number Diff line number Diff line change 42
42
var otherUploadersCount = XPathSelectNodes(ajaxplorer.getXmlRegistry(), 'plugins/uploader[@id!="uploader.flex"]').length;
43
43
if(otherUploadersCount == 0) return true;
44
44
var xhrUpload = (typeof File != "undefined" && typeof (new XMLHttpRequest()).upload != "undefined" && 'draggable' in new Element('span') && (window.FileReader || window.FormData) );
45
- return (pydio.getController(). getFlashVersion() >= 8 && (document.location.href.substring(0,5)!='https' || Prototype.Browser.IE) && ! xhrUpload );
45
+ return (getFlashVersion() >= 8 && (document.location.href.substring(0,5)!='https' || Prototype.Browser.IE) && ! xhrUpload );
46
46
]]> </activeCondition >
47
47
</processing >
48
48
</uploader >
You can’t perform that action at this time.
0 commit comments