forked from Wavyzz/dolibarr
NEW Enhance popup for image preview (show size in title, can restore
small view, always show the Rotate button).
This commit is contained in:
@@ -233,7 +233,11 @@ if ($conf->browser->layout != 'phone') {
|
||||
// Click on the preview picto
|
||||
jQuery(".documentpreview").click(function () {
|
||||
console.log("We click on preview for element with href="+$(this).attr(\'href\')+" mime="+$(this).attr(\'mime\'));
|
||||
document_preview($(this).attr(\'href\'), $(this).attr(\'mime\'), \''.dol_escape_js($langs->transnoentities("Preview")).'\');
|
||||
var titledocpreview = $(this).attr(\'data-title\');
|
||||
if (titledocpreview == undefined || titledocpreview == "") {
|
||||
titledocpreview = \''.dol_escape_js($langs->transnoentities("Preview")).'\'
|
||||
}
|
||||
document_preview($(this).attr(\'href\'), $(this).attr(\'mime\'), titledocpreview);
|
||||
return false;
|
||||
});
|
||||
});'."\n";
|
||||
|
||||
Reference in New Issue
Block a user