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) {
|
||||
if (top_node.href) {
|
||||
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" });
|
||||
highlight_a.setOpacity(0.5);
|
||||
highlight_a.clonePosition(top_node);
|
||||
@ -33,6 +33,7 @@ KeyboardNavigation.get_hrefs = function(fields, admin_mode) {
|
||||
}
|
||||
}
|
||||
|
||||
if (highlight_selectors) {
|
||||
if (missing_properties.length > 0) {
|
||||
var message = "[Keyboard Navigation] Missing selectors:\n\n" + missing_properties.join("\n");
|
||||
if (top.console) {
|
||||
@ -41,6 +42,7 @@ KeyboardNavigation.get_hrefs = function(fields, admin_mode) {
|
||||
alert(message);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (any_found) {
|
||||
return found_properties;
|
||||
|
@ -3,7 +3,7 @@
|
||||
Plugin Name: Keyboard Navigation
|
||||
Plugin URI: http://www.coswellproductions.com/wordpress/keyboard-navigation/
|
||||
Description: Attach keyboard navigation to blog entries.
|
||||
Version: 0.1
|
||||
Version: 0.2
|
||||
Author: John Bintz
|
||||
Author URI: http://www.coswellproductions.org/wordpress/
|
||||
|
||||
@ -115,7 +115,7 @@ class KeyboardNavigation {
|
||||
</form>
|
||||
|
||||
<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> |
|
||||
Released under the GNU GPL</p>
|
||||
@ -205,7 +205,8 @@ class KeyboardNavigation {
|
||||
</div>
|
||||
|
||||
<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>
|
||||
<?php }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user