mirror of
https://github.com/Cacti/cacti.git
synced 2026-11-09 14:02:54 +09:00
javascript errors
dont throw javascript errors when the href variable is unset
This commit is contained in:
1 parent
1617481ee0
commit
2deabb8f2a
1 file changed
+4
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user