Some fixes in documents due the new yoxview viewer

skala
Julio Montoya 15 years ago
parent 0f8cf0b4ec
commit 5bcf82b0d2
  1. 7
      main/document/document.inc.php
  2. 4
      main/document/document.php

@ -151,7 +151,8 @@ function create_document_link($document_data, $show_as_icon = false) {
//$new_path = '?id='.$document_data['id'];
$url = $www.$path;
}
$path = str_replace('%2F', '/',$url_path).'?'.api_get_cidreq();
//$path = str_replace('%2F', '/',$url_path).'?'.api_get_cidreq();
$path = str_replace('%2F', '/',$url_path); //yox view hack otherwise the image can't be well read
$url = $www.$path;
// Disabled fragment of code, there is a special icon for opening in a new window.
@ -167,7 +168,9 @@ function create_document_link($document_data, $show_as_icon = false) {
// The little download icon
//$tooltip_title = str_replace('?cidReq='.$_GET['cidReq'], '', basename($path));
$tooltip_title = explode('?', basename($path));
$tooltip_title = $tooltip_title[0];
//$tooltip_title = $tooltip_title[0];
$tooltip_title = $title;
$tooltip_title_alt = $tooltip_title;
if ($path == '/shared_folder') {

@ -64,7 +64,9 @@ $htmlHeadXtra[] = '<link rel="stylesheet" href="'.$js_path.'yoxview/yoxview.css"
$htmlHeadXtra[] = '<script type="text/javascript">
$(document).ready( function() {
$(".yoxview").yoxview({
skin: "top_menu"
skin: "top_menu",
titleAttribute:"alt"
});
for (i=0;i<$(".actions").length;i++) {
if ($(".actions:eq("+i+")").html()=="<table border=\"0\"></table>" || $(".actions:eq("+i+")").html()=="" || $(".actions:eq("+i+")").html()==null) {

Loading…
Cancel
Save