Changeset 1791

Show
Ignore:
Timestamp:
03/18/08 13:06:04
Author:
johnsa
Message:

public client: fix up event link javascript widget
websubmit: correct array index on comment fields

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • releases/bedework-3.4.1/deployment/webpublic/webapp/resources/demoskins/MainCampus/resources/javascript/bedework.js

    r1751 r1791  
    3636  var linkWindow = window.open("", "linkWindow", "width=1100,height=100,scrollbars=yes,resizable=yes,alwaysRaised=yes,menubar=no,toolbar=no"); 
    3737  linkWindow.document.open(); 
    38   linkWindow.document.writeln("<html><head><title>Event Link</title>"); 
     38  linkWindow.document.writeln('<html><head><title>Event Link</title>'); 
    3939  linkWindow.document.writeln('<style type="text/css">body{padding: 1em; font-size: 12px; font-family: Arial,sans-serif;}th{text-align: left;}td{padding-left: 2em;}</style></head>'); 
    40   linkWindow.document.writeln("<body><strong>Event Link:</strong><br/>"); 
    41   linkWindow.document.writeln('<a href="' + urlString + '" onclick="window.resizeTo(875,700)">'); 
    42   linkWindow.document.writeln(urlString); 
    43   linkWindow.document.writeln("</a>"); 
    44   linkWindow.document.writeln("</body></html>"); 
     40  linkWindow.document.writeln('<body onload="document.getElementById(\'linkField\').select()"><strong>Event Link:</strong><br/>'); 
     41  linkWindow.document.writeln('<input type="text" value="' + urlString + '" size="170" id="linkField"/>'); 
     42  linkWindow.document.writeln('</body></html>'); 
    4543  linkWindow.document.close(); 
    4644  linkWindow.focus(); 
  • releases/bedework-3.4.1/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/resources/javascript/bedework.js

    r1466 r1791  
    1616  document.getElementById('bwCalendarExportWidgetCalName').innerHTML = name; 
    1717} 
    18 function fillExportFields(formId) { 
     18function fillExportFields(formObj) { 
    1919  var startDate = new Date(); 
    2020  startDate = dojo.widget.byId("bwExportCalendarWidgetStartDate").getDate(); 
     
    3333  widget.hide(); 
    3434} 
    35  
     35function showLink(urlString) { 
     36  var linkWindow = window.open("", "linkWindow", "width=1100,height=100,scrollbars=yes,resizable=yes,alwaysRaised=yes,menubar=no,toolbar=no"); 
     37  linkWindow.document.open(); 
     38  linkWindow.document.writeln('<html><head><title>Event Link</title>'); 
     39  linkWindow.document.writeln('<style type="text/css">body{padding: 1em; font-size: 12px; font-family: Arial,sans-serif;}th{text-align: left;}td{padding-left: 2em;}</style></head>'); 
     40  linkWindow.document.writeln('<body onload="document.getElementById(\'linkField\').select()"><strong>Event Link:</strong><br/>'); 
     41  linkWindow.document.writeln('<input type="text" value="' + urlString + '" size="170" id="linkField"/>'); 
     42  linkWindow.document.writeln('</body></html>'); 
     43  linkWindow.document.close(); 
     44  linkWindow.focus(); 
     45
    3646/*function init() { 
    37   var exportWidget = dojo.widget.byId('bwCalendarExportWidget'); 
    38   exportWidget.hide(); 
     47  var widget = dojo.widget.byId("bwCalendarExportWidget"); 
    3948} 
    4049 
  • releases/bedework-3.4.1/deployment/websubmit/webapp/resources/demoskins/resources/bedeworkEventForm.js

    r1726 r1791  
    284284  var commentVals = comment.split("\t"); 
    285285  formObj["commentLocationAddress"].value = (commentVals[0] == undefined) ? "" : commentVals[0]; 
    286   formObj["commentLocationSubaddress"].value = (commentVals[2] == undefined) ? "" : commentVals[2]; 
     286  formObj["commentLocationSubaddress"].value = (commentVals[1] == undefined) ? "" : commentVals[1]; 
    287287  formObj["commentLocationURL"].value = (commentVals[2] == undefined) ? "" : commentVals[2]; 
    288288  formObj["commentContactName"].value = (commentVals[3] == undefined) ? "" : commentVals[3];