Project

General

Profile

« Previous | Next » 

Revision 4777

Added by daigle almost 16 years ago

Add the context url as a parameter to insertLoginBox() in branding_extensions.js.

View differences:

lib/style/skins/lter/index_login.jsp
56 56
  <body>
57 57
    <script language="javascript">
58 58
	  insertTemplateOpening("<%=CONTEXT_URL%>");
59
    insertLoginBox("<%= loginFailure %>");
60
    insertTemplateClosing("<%=CONTEXT_URL%>");
59
      insertLoginBox("<%= loginFailure %>","<%=CONTEXT_URL%>");
60
      insertTemplateClosing("<%=CONTEXT_URL%>");
61 61
  </script>
62 62
  </body>
63 63

  
lib/style/skins/lter/branding_extensions.js
67 67
/**
68 68
 *  inserts the header referenced by the LOGINBOX_URL setting
69 69
 */
70
function insertLoginBox(loginFailure) { 
70
function insertLoginBox(loginFailure, serverContextUrl) { 
71 71

  
72 72
  if (!_isBlank(LOGINBOX_URL)) {
73
  
74
    LOGINBOX_URL = prependUrl(serverContextUrl, LOGINBOX_URL);
73 75

  
74 76
    if (!_isBlank(loginFailure)) {
75 77
      LOGINBOX_URL = LOGINBOX_URL + "?loginFailure=" + loginFailure;

Also available in: Unified diff