Bei der CeeBox lässt sich die Funktion popup nicht benutzen. Es kommt zu einem Fehler durch nicht initalisierte Variablen:
Fehler: opts.action is undefined
Quelldatei: jquery.ceebox.js
Zeile: 367
Um den Fehler zu beheben, muss man im Funktionskörper von popup die Funktion init ausführen lassen:
Download Code!
$.fn.ceebox.popup = function(content,opts) {
var page = pageSize(opts.margin);
opts = $.extend({
//used as base only if non-link html content is sent.
//if a the content is a link than the ceebox build function sets these
width: page.width,
height: page.height,
modal:false,
type: "html",
onload:null
}, $.fn.ceebox.defaults, opts);
//Patch by Mr. Foo
if(typeof(opts.action) == 'undefined') {
init();
}
Mein Kollege hat den Entwickler über das Problem informiert. Er wird den Patch in der kommenden Version einbauen.
Kommentare