get version 0.2 working
This commit is contained in:
parent
26abac9592
commit
77817e633c
@ -15,7 +15,7 @@ KeyboardNavigation.get_hrefs = function(fields, admin_mode) {
|
|||||||
while (top_node) {
|
while (top_node) {
|
||||||
if (top_node.href) {
|
if (top_node.href) {
|
||||||
found_properties[key] = top_node.href; is_found = true;
|
found_properties[key] = top_node.href; is_found = true;
|
||||||
if (admin_mode) {
|
if (highlight_selectors) {
|
||||||
var highlight_a = new Element("a", { "title": key + ": " + instructions, "href": top_node.href, "style": "display: block; position: absolute; border: solid #f00 1px; background-color: #ff0; z-index: 1" });
|
var highlight_a = new Element("a", { "title": key + ": " + instructions, "href": top_node.href, "style": "display: block; position: absolute; border: solid #f00 1px; background-color: #ff0; z-index: 1" });
|
||||||
highlight_a.setOpacity(0.5);
|
highlight_a.setOpacity(0.5);
|
||||||
highlight_a.clonePosition(top_node);
|
highlight_a.clonePosition(top_node);
|
||||||
@ -33,12 +33,14 @@ KeyboardNavigation.get_hrefs = function(fields, admin_mode) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (missing_properties.length > 0) {
|
if (highlight_selectors) {
|
||||||
var message = "[Keyboard Navigation] Missing selectors:\n\n" + missing_properties.join("\n");
|
if (missing_properties.length > 0) {
|
||||||
if (top.console) {
|
var message = "[Keyboard Navigation] Missing selectors:\n\n" + missing_properties.join("\n");
|
||||||
top.console.log(message);
|
if (top.console) {
|
||||||
} else {
|
top.console.log(message);
|
||||||
alert(message);
|
} else {
|
||||||
|
alert(message);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
Plugin Name: Keyboard Navigation
|
Plugin Name: Keyboard Navigation
|
||||||
Plugin URI: http://www.coswellproductions.com/wordpress/keyboard-navigation/
|
Plugin URI: http://www.coswellproductions.com/wordpress/keyboard-navigation/
|
||||||
Description: Attach keyboard navigation to blog entries.
|
Description: Attach keyboard navigation to blog entries.
|
||||||
Version: 0.1
|
Version: 0.2
|
||||||
Author: John Bintz
|
Author: John Bintz
|
||||||
Author URI: http://www.coswellproductions.org/wordpress/
|
Author URI: http://www.coswellproductions.org/wordpress/
|
||||||
|
|
||||||
@ -115,7 +115,7 @@ class KeyboardNavigation {
|
|||||||
</form>
|
</form>
|
||||||
|
|
||||||
<div id="top-information">
|
<div id="top-information">
|
||||||
<p><strong>Keyboard Navigation</strong> Version 0.1</p>
|
<p><strong>Keyboard Navigation</strong> Version 0.2</p>
|
||||||
|
|
||||||
<p>Copyright © 2008 <a href="mailto:john@claritycomic.com?Subject=Keyboard+Navigation+Comments">John Bintz</a> |
|
<p>Copyright © 2008 <a href="mailto:john@claritycomic.com?Subject=Keyboard+Navigation+Comments">John Bintz</a> |
|
||||||
Released under the GNU GPL</p>
|
Released under the GNU GPL</p>
|
||||||
@ -205,7 +205,8 @@ class KeyboardNavigation {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p><strong>Keyboard Navigation</strong> requires that the visitor have JavaScript enabled. This plugin uses
|
<p><strong>Keyboard Navigation</strong> requires that the visitor have JavaScript enabled. This plugin uses
|
||||||
the Prototype JavaScript library, and including it will increase the size of your total site download.</p>
|
the Prototype JavaScript library, and including it will increase the size of your total site download. Additionally,
|
||||||
|
if other plugins <strong>load their own copies of the Prototype library</strong>, both plugins <strong>will break</strong>.</p>
|
||||||
</div>
|
</div>
|
||||||
<?php }
|
<?php }
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user