Adds another element existence check to avoid JS errors in welcome page.
This commit is contained in:
parent
5e58327a3f
commit
507e58dab6
13
app.js
13
app.js
|
@ -1150,12 +1150,13 @@ $(document).ready(function () {
|
||||||
if (interfaceConfig.SHOW_BRAND_WATERMARK) {
|
if (interfaceConfig.SHOW_BRAND_WATERMARK) {
|
||||||
var rightWatermarkDiv
|
var rightWatermarkDiv
|
||||||
= $("#welcome_page_header div[class='watermark rightwatermark']");
|
= $("#welcome_page_header div[class='watermark rightwatermark']");
|
||||||
|
if(rightWatermarkDiv && rightWatermarkDiv.length > 0) {
|
||||||
rightWatermarkDiv.css({display: 'block'});
|
rightWatermarkDiv.css({display: 'block'});
|
||||||
rightWatermarkDiv.parent().get(0).href
|
rightWatermarkDiv.parent().get(0).href
|
||||||
= interfaceConfig.BRAND_WATERMARK_LINK;
|
= interfaceConfig.BRAND_WATERMARK_LINK;
|
||||||
rightWatermarkDiv.get(0).style.backgroundImage
|
rightWatermarkDiv.get(0).style.backgroundImage
|
||||||
= "url(../images/rightwatermark.png)";
|
= "url(../images/rightwatermark.png)";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (interfaceConfig.SHOW_POWERED_BY) {
|
if (interfaceConfig.SHOW_POWERED_BY) {
|
||||||
|
|
Loading…
Reference in New Issue