Fixed bug dealing with empty subtitles Url string.

Now when subs parameter is empty or the YouTube IDs are not specified,
captions will not try to fetch non-existent file.
This commit is contained in:
Valera Rozuvan
2013-08-07 14:33:44 +03:00
parent fb0efd1b16
commit 6f431df910

View File

@@ -123,6 +123,10 @@ function () {
this.videoCaption.hideCaptions(this.hide_captions);
if (!this.youtubeId('1.0')) {
return;
}
$.ajaxWithPrefix({
url: _this.videoCaption.captionURL(),
notifyOnError: false,