Skip to content

Instantly share code, notes, and snippets.

@andymckay
Created April 2, 2011 00:13
Show Gist options
  • Save andymckay/899089 to your computer and use it in GitHub Desktop.
Save andymckay/899089 to your computer and use it in GitHub Desktop.
diff --git a/media/js/zamboni/devhub.js b/media/js/zamboni/devhub.js
index 7ad3a52..90f79d9 100644
--- a/media/js/zamboni/devhub.js
+++ b/media/js/zamboni/devhub.js
@@ -96,7 +96,8 @@ $(document).ready(function() {
}
// when to start and stop image polling
- if ($('#edit-addon-media').length) {
+ if ($('#edit-addon-media').length &&
+ $('#edit-addon-media').attr('data-checkurl') !== undefined) {
imageStatus.start();
}
$('#edit-addon-media').bind('click', function() {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment