не работает код.
<script type="text/javascript">
$('.thumbnail > a').click(function(){
$.modal().open({
onOpen: function(el, options){
el.html('Hello!');
}
});
return false;
})
</script>
на вот таком HTML
<div class="thumbnail">
<a href="image.png">
<img src="thumb.png">
</a>
</div>
return false нету, модального окна нет и выпадает ошибка
Uncaught exception: TypeError: 'a.cloneNode' is not a function
Error thrown at line 4, column 7138 in (a, b, c) in http://yandex.st/jquery/1.7.2/jquery.min.js:
var d,e,g,h=f.support.html5Clone||f.isXMLDoc(a)||!bc.test("<"+a.nodeName+">")?a.cloneNode(!0):bo(a);
called from line 4, column 1631 in () in http://yandex.st/jquery/1.7.2/jquery.min.js:
return f.clone(this,a,b)
called via Function.prototype.call() from line 2, column 17338 in (b, c) in http://yandex.st/jquery/1.7.2/jquery.min.js:
return a.call(b,c,b)
called from line 2, column 25218 in (a, c, d) in http://yandex.st/jquery/1.7.2/jquery.min.js:
f=c(a[i],i,d),f!=&&(h[h.length]=f);
called from line 2, column 17246 in (a) in http://yandex.st/jquery/1.7.2/jquery.min.js:
return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))
called from line 4, column 1545 in (a, b) in http://yandex.st/jquery/1.7.2/jquery.min.js:
return this.map(function(){return f.clone(this,a,b)})
called from line 58, column 5 in (options) in http://localhost:8000/static/script/jquery.the-modal/jquery.the-modal.js:
var cln = $(el).clone(true).appendTo(modal).show();
called from line 126, column 8 in () in http://localhost:8000/info/gh/:
$.modal().open({
called via Function.prototype.apply() from line 3, column 8566 in (c) in http://yandex.st/jquery/1.7.2/jquery.min.js:
c.data=s.data,c.handleObj=s,o=((f.event.special[s.origType]||{}).handle||s.handler).apply(q.elem,g),o!==b&&(c.result=o,o===!1&&(c.preventDefault(),c.stopPropagation()))
called via Function.prototype.apply() from line 3, column 1244 in (a) in http://yandex.st/jquery/1.7.2/jquery.min.js:
return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(i.elem,arguments):b
если код вынести из .click() то появляется только ширма