Created
March 4, 2011 03:36
-
-
Save andymckay/854131 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/media/js/zamboni/init.js b/media/js/zamboni/init.js | |
index f69438b..0649971 100644 | |
--- a/media/js/zamboni/init.js | |
+++ b/media/js/zamboni/init.js | |
@@ -5,7 +5,9 @@ $(document).ready(function(){ | |
// Initialize install buttons. | |
$('.install').installButton(); | |
- $('.backup-button').showBackupButton(); | |
+ if ($('.backup-button').length) { | |
+ $('.backup-button').showBackupButton(); | |
+ } | |
// Initialize any tabbed interfaces. See: tabs.js | |
if ($.fn.tabify) { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
should be much safer- thanks!