Skip to content

Commit

Permalink
Version 1.5.5.1
Browse files Browse the repository at this point in the history
* Fix: Disabled links not being disabled (Disabling Sascha)
  • Loading branch information
archetyped committed Jul 1, 2011
1 parent c53915a commit 71a1694
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 13 deletions.
28 changes: 25 additions & 3 deletions js/dev/lightbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ SLB = {
*/
updateImageList: function() {
var el, els, rel, ph = '{relattr}', t = this;
var sel = [], selBase = '[href][rel*="' + ph + '"]';
var sel = [], selBase = '[href][rel*="' + ph + '"]:not([rel~="' + this.addPrefix('off') + '"])';

//Define event handler
var handler = function() {
Expand Down Expand Up @@ -766,13 +766,35 @@ SLB = {
this.showBadObjects(false);
},

/**
* Generate separator text
* @param string sep Separator text
* @return string Separator text
*/
getSep: function(sep) {
return ( typeof sep == 'undefined' ) ? '_' : sep;
},

/**
* Retrieve prefix
* @return string Object prefix
*/
getPrefix: function() {
return this.prefix;
},

/**
* Add prefix to text
* @param string txt Text to add prefix to
* @param string sep (optional) Separator text
* @return string Prefixed text
*/
addPrefix: function(txt) {
return this.prefix + '_' + txt;
addPrefix: function(txt, sep) {
return this.getPrefix() + this.getSep(sep) + txt;
},

hasPrefix: function(txt) {
return ( txt.indexOf(this.addPrefix('')) == 0 ) ? true : false;
},

/**
Expand Down
18 changes: 9 additions & 9 deletions js/lib.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion main.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Plugin Name: Simple Lightbox
Plugin URI: http://archetyped.com/tools/simple-lightbox/
Description: Customizable Lightbox for Wordpress
Version: 1.5.5
Version: 1.5.5.1
Author: Archetyped
Author URI: http://archetyped.com
*/
Expand Down
3 changes: 3 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ Post your questions and comments on [Simple Lightbox's official page](http://arc
2. Customized UI Text

== Changelog ==
= 1.5.5.1 =
* Fix: Disabled links not being disabled (Disabling Sascha)

= 1.5.5 =
* Add: Distinct link activation (will not affect other lightboxes)
* Add: Backwards compatibility with legacy lightbox links (optional)
Expand Down

0 comments on commit 71a1694

Please sign in to comment.