Proper non-use link href rewrites
authorLaury GvR <laury@gaslightmedia.com>
Mon, 20 Oct 2014 19:06:57 +0000 (15:06 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Mon, 20 Oct 2014 19:06:57 +0000 (15:06 -0400)
Gaslightify.php
js/Gaslightify.js

index de0842f..998e9e4 100755 (executable)
@@ -4,7 +4,7 @@
 Plugin Name: Gaslightify
 Plugin URI: http://URI_Of_Page_Describing_Plugin_and_Updates
 Description: A gasline to a Wordpress website.
-Version: 1.32
+Version: 1.34
 Author: Gaslight Media
 Author URI: http://www.gaslightmedia.com
 License: Gaslight Media
index 3542b14..530d102 100755 (executable)
@@ -2,16 +2,14 @@ jQuery(document).ready(function(){
        jQuery("#wp-admin-bar-my-account > a").click(function(){
                return false;
        });
-        jQuery("#wp-admin-bar-wp-logo > .ab-item").click(function() {
-            return false;
-        });
         jQuery("#wp-admin-bar-wp-logo").hover(function() {
             return false;
         });
         var jurl = jQuery(".ngg-gallery-thumbnail").attr("title");
         jQuery(".ngg-gallery-thumbnail").attr("href","http://gaslight.upnorth.net/our-work/"+jurl);
         
-        jQuery('#wp-admin-bar-my-account > a').attr("href","#");
+        jQuery("#wp-admin-bar-wp-logo > .ab-item").attr("href",window.location.origin);
+        jQuery('#wp-admin-bar-my-account > a').attr("href",window.location.origin);
         jQuery('#wp-admin-bar-user-info > a').attr("href","#");
         
 });