Skip to content

Instantly share code, notes, and snippets.

@andymckay
Created March 4, 2011 03:36
Show Gist options
  • Save andymckay/854131 to your computer and use it in GitHub Desktop.
Save andymckay/854131 to your computer and use it in GitHub Desktop.
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) {
@potch
Copy link

potch commented Mar 4, 2011

should be much safer- thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment