From 3d1e95606954cbebfd5f808595427e520ca6eb57 Mon Sep 17 00:00:00 2001 From: Luke Faraone Date: Thu, 6 Sep 2012 15:19:56 -0400 Subject: [PATCH] Don't check for class existence if we're not sending to a class. (imported from commit 832de3f899d90ee727cebeede061de6a409b7845) --- zephyr/static/js/zephyr.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zephyr/static/js/zephyr.js b/zephyr/static/js/zephyr.js index e4035c604e..1d343f791e 100644 --- a/zephyr/static/js/zephyr.js +++ b/zephyr/static/js/zephyr.js @@ -62,6 +62,10 @@ $(function() { .stop(true).fadeTo(0,1); buttons.attr('disabled', 'disabled'); buttons.blur() + + if ($("#class-message:visible")[0] == undefined) {// we're not dealing with classes + return true; + } var okay = true; $.ajaxSetup({async:false}); // so we get blocking gets $.get("subscriptions/exists/" + $("#class").val(), function(data) {