diff --git a/apps/files_imageviewer/js/jquery.fancybox-1.3.4.js b/apps/files_imageviewer/js/jquery.fancybox-1.3.4.js
index be77275376b..21b202b9e31 100644
--- a/apps/files_imageviewer/js/jquery.fancybox-1.3.4.js
+++ b/apps/files_imageviewer/js/jquery.fancybox-1.3.4.js
@@ -84,7 +84,8 @@
}
title = selectedOpts.title || (obj.nodeName ? $(obj).attr('title') : obj.title) || '';
-
+ title = title.replace(/, "<").replace(/>/, ">");
+
if (obj.nodeName && !selectedOpts.orig) {
selectedOpts.orig = $(obj).children("img:first").length ? $(obj).children("img:first") : $(obj);
}
diff --git a/apps/files_imageviewer/js/jquery.fancybox-1.3.4.pack.js b/apps/files_imageviewer/js/jquery.fancybox-1.3.4.pack.js
index d5b72d8640c..ff9a90f09de 100644
--- a/apps/files_imageviewer/js/jquery.fancybox-1.3.4.pack.js
+++ b/apps/files_imageviewer/js/jquery.fancybox-1.3.4.pack.js
@@ -1,793 +1 @@
-/*
- * FancyBox - jQuery Plugin
- * Simple and fancy lightbox alternative
- *
- * Examples and documentation at: http://fancybox.net
- *
- * Copyright (c) 2008 - 2010 Janis Skarnelis
- * That said, it is hardly a one-person project. Many people have submitted bugs, code, and offered their advice freely. Their support is greatly appreciated.
- *
- * Version: 1.3.4 (11/11/2010)
- * Requires: jQuery v1.3+
- *
- * Dual licensed under the MIT and GPL licenses:
- * http://www.opensource.org/licenses/mit-license.php
- * http://www.gnu.org/licenses/gpl.html
- */
-
-;
-(function(b) {
- var m, t, u, f, D, j, E, n, z, A, q = 0, e = {}, o = [], p = 0, d = {}, l = [], G = null, v = new Image, J = /\.(jpg|gif|png|bmp|jpeg)(.*)?$/i, W = /[^\.]\.(swf)\s*$/i, K, L = 1, y = 0, s = "", r, i, h = false, B = b
- .extend(b("
")[0], {
- prop : 0
- }), M = b.browser.msie && b.browser.version < 7
- && !window.XMLHttpRequest, N = function() {
- t.hide();
- v.onerror = v.onload = null;
- G && G.abort();
- m.empty()
- }, O = function() {
- if (false === e.onError(o, q, e)) {
- t.hide();
- h = false
- } else {
- e.titleShow = false;
- e.width = "auto";
- e.height = "auto";
- m
- .html('
The requested content cannot be loaded. Please try again later.
');
- F()
- }
- }, I = function() {
- var a = o[q], c, g, k, C, P, w;
- N();
- e = b.extend({}, b.fn.fancybox.defaults,
- typeof b(a).data("fancybox") == "undefined" ? e : b(a).data(
- "fancybox"));
- w = e.onStart(o, q, e);
- if (w === false)
- h = false;
- else {
- if (typeof w == "object")
- e = b.extend(e, w);
- k = e.title || (a.nodeName ? b(a).attr("title") : a.title) || "";
- k = k.replace(/, "<").replace(/>/, ">");
- if (a.nodeName && !e.orig)
- e.orig = b(a).children("img:first").length ? b(a).children(
- "img:first") : b(a);
- if (k === "" && e.orig && e.titleFromAlt)
- k = e.orig.attr("alt");
- c = e.href || (a.nodeName ? b(a).attr("href") : a.href) || null;
- if (/^(?:javascript)/i.test(c) || c == "#")
- c = null;
- if (e.type) {
- g = e.type;
- if (!c)
- c = e.content
- } else if (e.content)
- g = "html";
- else if (c)
- g = c.match(J) ? "image" : c.match(W) ? "swf" : b(a).hasClass(
- "iframe") ? "iframe" : c.indexOf("#") === 0 ? "inline"
- : "ajax";
- if (g) {
- if (g == "inline") {
- a = c.substr(c.indexOf("#"));
- g = b(a).length > 0 ? "inline" : "ajax"
- }
- e.type = g;
- e.href = c;
- e.title = k;
- if (e.autoDimensions)
- if (e.type == "html" || e.type == "inline"
- || e.type == "ajax") {
- e.width = "auto";
- e.height = "auto"
- } else
- e.autoDimensions = false;
- if (e.modal) {
- e.overlayShow = true;
- e.hideOnOverlayClick = false;
- e.hideOnContentClick = false;
- e.enableEscapeButton = false;
- e.showCloseButton = false
- }
- e.padding = parseInt(e.padding, 10);
- e.margin = parseInt(e.margin, 10);
- m.css("padding", e.padding + e.margin);
- b(".fancybox-inline-tmp").unbind("fancybox-cancel").bind(
- "fancybox-change", function() {
- b(this).replaceWith(j.children())
- });
- switch (g) {
- case "html":
- m.html(e.content);
- F();
- break;
- case "inline":
- if (b(a).parent().is("#fancybox-content") === true) {
- h = false;
- break
- }
- b('').hide()
- .insertBefore(b(a)).bind("fancybox-cleanup",
- function() {
- b(this).replaceWith(j.children())
- }).bind("fancybox-cancel", function() {
- b(this).replaceWith(m.children())
- });
- b(a).appendTo(m);
- F();
- break;
- case "image":
- h = false;
- b.fancybox.showActivity();
- v = new Image;
- v.onerror = function() {
- O()
- };
- v.onload = function() {
- h = true;
- v.onerror = v.onload = null;
- e.width = v.width;
- e.height = v.height;
- b("").attr({
- id : "fancybox-img",
- src : v.src,
- alt : e.title
- }).appendTo(m);
- Q()
- };
- v.src = c;
- break;
- case "swf":
- e.scrolling = "no";
- C = '";
- m.html(C);
- F();
- break;
- case "ajax":
- h = false;
- b.fancybox.showActivity();
- e.ajax.win = e.ajax.success;
- G = b.ajax(b.extend({}, e.ajax, {
- url : c,
- data : e.ajax.data || {},
- error : function(x) {
- x.status > 0 && O()
- },
- success : function(x, H, R) {
- if ((typeof R == "object" ? R : G).status == 200) {
- if (typeof e.ajax.win == "function") {
- w = e.ajax.win(c, x, H, R);
- if (w === false) {
- t.hide();
- return
- } else if (typeof w == "string"
- || typeof w == "object")
- x = w
- }
- m.html(x);
- F()
- }
- }
- }));
- break;
- case "iframe":
- Q()
- }
- } else
- O()
- }
- }, F = function() {
- var a = e.width, c = e.height;
- a = a.toString().indexOf("%") > -1 ? parseInt(
- (b(window).width() - e.margin * 2) * parseFloat(a) / 100, 10)
- + "px" : a == "auto" ? "auto" : a + "px";
- c = c.toString().indexOf("%") > -1 ? parseInt(
- (b(window).height() - e.margin * 2) * parseFloat(c) / 100, 10)
- + "px" : c == "auto" ? "auto" : c + "px";
- m.wrapInner('');
- e.width = m.width();
- e.height = m.height();
- Q()
- }, Q = function() {
- var a, c;
- t.hide();
- if (f.is(":visible") && false === d.onCleanup(l, p, d)) {
- b.event.trigger("fancybox-cancel");
- h = false
- } else {
- h = true;
- b(j.add(u)).unbind();
- b(window).unbind("resize.fb scroll.fb");
- b(document).unbind("keydown.fb");
- f.is(":visible") && d.titlePosition !== "outside"
- && f.css("height", f.height());
- l = o;
- p = q;
- d = e;
- if (d.overlayShow) {
- u.css({
- "background-color" : d.overlayColor,
- opacity : d.overlayOpacity,
- cursor : d.hideOnOverlayClick ? "pointer" : "auto",
- height : b(document).height()
- });
- if (!u.is(":visible")) {
- M
- && b("select:not(#fancybox-tmp select)")
- .filter(
- function() {
- return this.style.visibility !== "hidden"
- }).css({
- visibility : "hidden"
- }).one("fancybox-cleanup", function() {
- this.style.visibility = "inherit"
- });
- u.show()
- }
- } else
- u.hide();
- i = X();
- s = d.title || "";
- y = 0;
- n.empty().removeAttr("style").removeClass();
- if (d.titleShow !== false) {
- if (b.isFunction(d.titleFormat))
- a = d.titleFormat(s, l, p, d);
- else
- a = s && s.length ? d.titlePosition == "float" ? '
'),Q=B(''),M=B(''));d=B('').append('').appendTo(M);d.append(m=B(''),J=B(''),A=B(''),O=B(''),z=B(''));J.click(B.fancybox.close);T.click(B.fancybox.cancel);O.click(function(V){V.preventDefault();B.fancybox.prev()});z.click(function(V){V.preventDefault();B.fancybox.next()});if(B.fn.mousewheel){M.bind("mousewheel.fb",function(V,W){if(P){V.preventDefault()}else{if(B(V.target).get(0).clientHeight==0||B(V.target).get(0).scrollHeight===B(V.target).get(0).clientHeight){V.preventDefault();B.fancybox[W>0?"prev":"next"]()}}})}if(!B.support.opacity){M.addClass("fancybox-ie")}if(S){T.addClass("fancybox-ie6");M.addClass("fancybox-ie6");B('').prependTo(d)}};B.fn.fancybox.defaults={padding:10,margin:40,opacity:false,modal:false,cyclic:false,scrolling:"auto",width:560,height:340,autoScale:true,autoDimensions:true,centerOnScroll:false,ajax:{},swf:{wmode:"transparent"},hideOnOverlayClick:true,hideOnContentClick:false,overlayShow:true,overlayOpacity:0.7,overlayColor:"#777",titleShow:true,titlePosition:"float",titleFormat:null,titleFromAlt:false,transitionIn:"fade",transitionOut:"fade",speedIn:300,speedOut:300,changeSpeed:300,changeFade:"fast",easingIn:"swing",easingOut:"swing",showCloseButton:true,showNavArrows:true,enableEscapeButton:true,enableKeyboardNav:true,onStart:function(){},onCancel:function(){},onComplete:function(){},onCleanup:function(){},onClosed:function(){},onError:function(){}};B(document).ready(function(){B.fancybox.init()})})(jQuery);
\ No newline at end of file