Changeset 73191 in spip-zone


Ignore:
Timestamp:
Jun 3, 2013, 7:45:23 AM (6 years ago)
Author:
cedric@…
Message:

Reparer l'API modalbox qui ne déclenchait plus la mediabox proprement car this était une collection vide.
+ border:0 sur #cBoxClose qui est maintenant un <button>

Location:
_core_/plugins/mediabox
Files:
18 edited

Legend:

Unmodified
Added
Removed
  • _core_/plugins/mediabox/colorbox/black-greybox/colorbox.css

    r65017 r73191  
    4444        #cboxNext{left:27px; background-position:-75px -25px;}
    4545        #cboxNext.hover{background-position:-75px 0px;}
    46         #cboxClose{right:0; background-position:-100px -25px;}
     46        #cboxClose{right:0; background-position:-100px -25px;border:0}
    4747        #cboxClose.hover{background-position:-100px 0px;}
    4848       
  • _core_/plugins/mediabox/colorbox/black-greybox/colorbox_rtl.css

    r65017 r73191  
    4444        #cboxNext{right:27px; background-position:-51px -25px;}
    4545        #cboxNext.hover{background-position:-51px 0px;}
    46         #cboxClose{left:0; background-position:-100px -25px;}
     46        #cboxClose{left:0; background-position:-100px -25px;border:0}
    4747        #cboxClose.hover{background-position:-100px 0px;}
    4848       
  • _core_/plugins/mediabox/colorbox/black-simple/colorbox.css

    r65017 r73191  
    3535        #cboxLoadingOverlay{background:#000;}
    3636        #cboxLoadingGraphic{background:url(images/loading.gif) center center no-repeat;}
    37         #cboxClose{position:absolute; top:5px; right:5px; display:block; background:url(images/controls.png) top center no-repeat; width:38px; height:19px; text-indent:-9999px;}
     37        #cboxClose{position:absolute; top:5px; right:5px; display:block; background:url(images/controls.png) top center no-repeat; width:38px; height:19px; text-indent:-9999px;border:0}
    3838        #cboxClose.hover{background-position:bottom center;}
  • _core_/plugins/mediabox/colorbox/black-simple/colorbox_rtl.css

    r65017 r73191  
    3535        #cboxLoadingOverlay{background:#000;}
    3636        #cboxLoadingGraphic{background:url(images/loading.gif) center center no-repeat;}
    37         #cboxClose{position:absolute; top:5px; left:5px; display:block; background:url(images/controls.png) top center no-repeat; width:38px; height:19px; text-indent:-9999px;}
     37        #cboxClose{position:absolute; top:5px; left:5px; display:block; background:url(images/controls.png) top center no-repeat; width:38px; height:19px; text-indent:-9999px;border:0}
    3838        #cboxClose.hover{background-position:bottom center;}
  • _core_/plugins/mediabox/colorbox/black-striped/colorbox.css

    r65017 r73191  
    4242        #cboxLoadingOverlay{background:url(images/loading_background.png) center center no-repeat;}
    4343        #cboxLoadingGraphic{background:url(images/loading.gif) center center no-repeat;}
    44         #cboxClose{position:absolute; bottom:0; right:0; background:url(images/controls.png) -25px 0px no-repeat; width:25px; height:25px; text-indent:-9999px;}
     44        #cboxClose{position:absolute; bottom:0; right:0; background:url(images/controls.png) -25px 0px no-repeat; width:25px; height:25px; text-indent:-9999px;border:0}
    4545        #cboxClose.hover{background-position:-25px -25px;}
    4646
  • _core_/plugins/mediabox/colorbox/black-striped/colorbox_rtl.css

    r65017 r73191  
    4242        #cboxLoadingOverlay{background:url(images/loading_background.png) center center no-repeat;}
    4343        #cboxLoadingGraphic{background:url(images/loading.gif) center center no-repeat;}
    44         #cboxClose{position:absolute; bottom:0; left:0; background:url(images/controls.png) -25px 0px no-repeat; width:25px; height:25px; text-indent:-9999px;}
     44        #cboxClose{position:absolute; bottom:0; left:0; background:url(images/controls.png) -25px 0px no-repeat; width:25px; height:25px; text-indent:-9999px;border:0}
    4545        #cboxClose.hover{background-position:-25px -25px;}
    4646
  • _core_/plugins/mediabox/colorbox/bootstrap/colorbox.css

    r65017 r73191  
    3636#cboxNext { background-image: url(images/next.png); left: 25px; }
    3737#cboxSlideshow { background-image: url(images/start.png); left: 45px; }
    38 #cboxClose { background-image: url(images/close.png); right: 5px; }
     38#cboxClose { background-image: url(images/close.png); right: 5px; border:0}
    3939.cboxSlideshow_on #cboxSlideshow { background-image: url(images/stop.png) }
    4040.cboxSlideshow_off #cboxSlideshow { background-image: url(images/start.png) }
  • _core_/plugins/mediabox/colorbox/bootstrap/colorbox_rtl.css

    r65017 r73191  
    3636#cboxNext { background-image: url(images/prev.png); right: 25px; }
    3737#cboxSlideshow { background-image: url(images/start_rtl.png); right: 45px; }
    38 #cboxClose { background-image: url(images/close.png); left: 5px; }
     38#cboxClose { background-image: url(images/close.png); left: 5px; border:0}
    3939.cboxSlideshow_on #cboxSlideshow { background-image: url(images/stop.png) }
    4040.cboxSlideshow_off #cboxSlideshow { background-image: url(images/start_rtl.png) }
  • _core_/plugins/mediabox/colorbox/fancybox/colorbox.css

    r69919 r73191  
    4545        #cboxLoadingGraphic{background:url(images/loading.gif) center center no-repeat;}
    4646        #cboxClose{position:absolute; top: -12px; right: -15px; height: 30px; width: 30px;
    47                 background:url(images/fancy_shadow-spt2.png) -0px -35px no-repeat; text-indent:-9999px;}
     47                background:url(images/fancy_shadow-spt2.png) -0px -35px no-repeat; text-indent:-9999px;border:0}
    4848
    4949        .cboxSlideshow_on #cboxSlideshow{background-position:-80px -35px;}
  • _core_/plugins/mediabox/colorbox/fancybox/colorbox_rtl.css

    r70658 r73191  
    4545        #cboxLoadingGraphic{background:url(images/loading.gif) center center no-repeat;}
    4646        #cboxClose{position:absolute; top: -12px; left: -15px; height: 30px; width: 30px;
    47                 background:url(images/fancy_shadow-spt2.png) -0px -35px no-repeat; text-indent:-9999px;}
     47                background:url(images/fancy_shadow-spt2.png) -0px -35px no-repeat; text-indent:-9999px;border:0}
    4848
    4949        .cboxSlideshow_on #cboxSlideshow{background-position:-80px -35px;}
  • _core_/plugins/mediabox/colorbox/thickbox/colorbox.css

    r72286 r73191  
    4242        #cboxLoadingOverlay{background:#fff;}
    4343        #cboxLoadingGraphic{background:url(images/loading.gif) center center no-repeat;}
    44         #cboxClose{position:absolute; bottom:20px; right:0; background:url(images/close.gif) 0px 0px no-repeat; width:26px; height:26px; text-indent:-9999px;}
     44        #cboxClose{position:absolute; bottom:20px; right:0; background:url(images/close.gif) 0px 0px no-repeat; width:26px; height:26px; text-indent:-9999px;border:0}
    4545
    4646/*
  • _core_/plugins/mediabox/colorbox/thickbox/colorbox_rtl.css

    r65017 r73191  
    4242        #cboxLoadingOverlay{background:#fff;}
    4343        #cboxLoadingGraphic{background:url(images/loading.gif) center center no-repeat;}
    44         #cboxClose{position:absolute; bottom:20px; left:0; background:url(images/close.gif) 0px 0px no-repeat; width:26px; height:26px; text-indent:-9999px;}
     44        #cboxClose{position:absolute; bottom:20px; left:0; background:url(images/close.gif) 0px 0px no-repeat; width:26px; height:26px; text-indent:-9999px;border:0}
    4545
    4646/*
  • _core_/plugins/mediabox/colorbox/white-shadow/colorbox.css

    r65017 r73191  
    4040        #cboxNext{position:absolute; bottom:0px; left:70px; color:#444;}
    4141        #cboxLoadingOverlay{background:url(images/loading.gif) 5px 5px no-repeat #fff;}
    42         #cboxClose{position:absolute; bottom:0; right:0; display:block; color:#444;}
     42        #cboxClose{position:absolute; bottom:0; right:0; display:block; color:#444;border:0}
    4343
    4444/*
  • _core_/plugins/mediabox/colorbox/white-shadow/colorbox_rtl.css

    r65017 r73191  
    4040        #cboxNext{position:absolute; bottom:0px; right:70px; color:#444;}
    4141        #cboxLoadingOverlay{background:url(images/loading.gif) 5px 5px no-repeat #fff;}
    42         #cboxClose{position:absolute; bottom:0; left:0; display:block; color:#444;}
     42        #cboxClose{position:absolute; bottom:0; left:0; display:block; color:#444;border:0}
    4343
    4444/*
  • _core_/plugins/mediabox/colorbox/white-simple/colorbox.css

    r65017 r73191  
    3535        #cboxNext{background-position:-25px 0px; right:22px;}
    3636        #cboxNext.hover{background-position:-25px -25px;}
    37         #cboxClose{background-position:-50px 0px; right:0;}
     37        #cboxClose{background-position:-50px 0px; right:0;border:0}
    3838        #cboxClose.hover{background-position:-50px -25px;}
    3939        .cboxSlideshow_on #cboxPrevious, .cboxSlideshow_off #cboxPrevious{right:66px;}
  • _core_/plugins/mediabox/colorbox/white-simple/colorbox_rtl.css

    r65017 r73191  
    3535        #cboxNext{background-position:-0px 0px; left:22px;}
    3636        #cboxNext.hover{background-position:0px -25px;}
    37         #cboxClose{background-position:-50px 0px; left:0;}
     37        #cboxClose{background-position:-50px 0px; left:0;border:0}
    3838        #cboxClose.hover{background-position:-50px -25px;}
    3939        .cboxSlideshow_on #cboxPrevious, .cboxSlideshow_off #cboxPrevious{left:66px;}
  • _core_/plugins/mediabox/javascript/spip.mediabox.js

    r49986 r73191  
    8585                        onClosed: (options && options.onClose) || null
    8686                };
    87                
    88                 return this.colorbox($.extend(cbox_options,options));
     87                console.log($.extend(cbox_options,options));
     88
     89                if (!this.length)
     90                        return $.colorbox($.extend(cbox_options,options));
     91                else
     92                        return this.colorbox($.extend(cbox_options,options));
    8993        };
    9094        $.mediaboxClose = function () {$.fn.colorbox.close();};
    9195
    9296        // API modalbox
    93         $.modalbox = function (href, options) {$.fn.mediabox($.extend({href:href,inline:href.match(/^#/),overlayClose:true},options));};
     97        $.modalbox = function (href, options) {$.fn.mediabox($.extend({href:href,inline:href.match(/^#/)?true:false,overlayClose:true},options));};
    9498        $.modalboxload = function (url, options) { $.modalbox(url,options); };
    9599        $.modalboxclose = $.mediaboxClose;
  • _core_/plugins/mediabox/paquet.xml

    r73116 r73191  
    22        prefix="mediabox"
    33        categorie="multimedia"
    4         version="0.9.0"
     4        version="0.9.1"
    55        etat="stable"
    66        compatibilite="[3.0.0;3.1.*]"
Note: See TracChangeset for help on using the changeset viewer.