mirror of https://github.com/zulip/zulip.git
Don't check for class existence if we're not sending to a class.
(imported from commit 832de3f899d90ee727cebeede061de6a409b7845)
This commit is contained in:
parent
ebfb696ff7
commit
3d1e956069
|
@ -62,6 +62,10 @@ $(function() {
|
||||||
.stop(true).fadeTo(0,1);
|
.stop(true).fadeTo(0,1);
|
||||||
buttons.attr('disabled', 'disabled');
|
buttons.attr('disabled', 'disabled');
|
||||||
buttons.blur()
|
buttons.blur()
|
||||||
|
|
||||||
|
if ($("#class-message:visible")[0] == undefined) {// we're not dealing with classes
|
||||||
|
return true;
|
||||||
|
}
|
||||||
var okay = true;
|
var okay = true;
|
||||||
$.ajaxSetup({async:false}); // so we get blocking gets
|
$.ajaxSetup({async:false}); // so we get blocking gets
|
||||||
$.get("subscriptions/exists/" + $("#class").val(), function(data) {
|
$.get("subscriptions/exists/" + $("#class").val(), function(data) {
|
||||||
|
|
Loading…
Reference in New Issue