Permalink
Browse files

jquery adapter reads title attribute

  • Loading branch information...
1 parent e53a950 commit 3a5429bf0241aa7a8f146082b1b251437881df8f @BeezyT committed Oct 12, 2010
Showing with 5 additions and 0 deletions.
  1. +5 −0 source/adapters/jquery.js
@@ -98,6 +98,11 @@ jQuery.fn.shadowbox = function(options) {
var cls = this.className || '';
opts.width = parseInt((cls.match(/w:(\d+)/)||[])[1]) || opts.width;
opts.height = parseInt((cls.match(/h:(\d+)/)||[])[1]) || opts.height;
+ // title
+ var title = el.attr('title');
+ if (title) {
+ opts.title = title;
+ }
Shadowbox.setup(el, opts);
});
}

0 comments on commit 3a5429b

Please sign in to comment.