Skip to content

Commit

Permalink
Bug #6, Javascript fixes - not logged in [iet:10275621]
Browse files Browse the repository at this point in the history
  • Loading branch information
nfreear committed Dec 1, 2017
1 parent 97b1e0a commit 2e8e62c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/src/local-fixes.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ function fix_pilot_fallback_link($, resp) {
var url = $link.attr('href');
var m_inst = url ? url.match(/-pilot-fallback-for-(\w+)/) : null;
var inst_code = m_inst ? m_inst[ 1 ] : null;
var fallback = resp.config.fallback_for;
var fallback = resp.config.fallback_for || {};
var fallback_url = fallback[ inst_code ] || null;

$msg.addClass('alert alert-info');
Expand Down
2 changes: 1 addition & 1 deletion js/src/ouop-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,5 @@ function replace_object (str, mapObj) {
function alert (msg, id, cls) {
return '<div id="' + (id || 'oua') + '" class="ouop alert ' +
(cls || 'alert-warning') + '" role="alert">' +
msg.replace(/href=/g, 'class="alert-link" href=') + '</div>';
(msg ? msg.replace(/href=/g, 'class="alert-link" href=') : 'no-msg') + '</div>';
}

0 comments on commit 2e8e62c

Please sign in to comment.