javascript errors

dont throw javascript errors when the href variable is unset
This commit is contained in:
cigamit committed 2015-05-18 21:13:17 -05:00
1 parent 1617481ee0
commit 2deabb8f2a
1 file changed
+4 -1
+4 -1
View File
@@ -17,7 +17,10 @@ function themeReady() {
/* execute an ajax request to load the data */
href = $(this).attr('href');
pageName = basename(href);
if (href != null) {
pageName = basename(href);
}
$.get(href, function(html) {
var htmlObject = $(html);