Changeset 2054
- Timestamp:
- 02/11/09 11:02:01
- Files:
-
- trunk/deployment/webadmin/portlet/resources/resources/bwClock.js (modified) (3 diffs)
- trunk/deployment/webadmin/webapp/resources/default/default/default.xsl (modified) (2 diffs)
- trunk/deployment/webadmin/webapp/resources/resources/bwClock.js (modified) (2 diffs)
- trunk/deployment/webconfig/webapp/resources/default/default/default.xsl (modified) (1 diff)
- trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/PDA/default.xsl (modified) (1 diff)
- trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/default.xsl (modified) (1 diff)
- trunk/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/default/default/default.xsl (modified) (1 diff)
- trunk/deployment/websubmit/webapp/resources/demoskins/default/default/default.xsl (modified) (1 diff)
- trunk/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/deployment/webadmin/portlet/resources/resources/bwClock.js
r1105 r2054 5 5 6 6 function bwClockLaunch(type) { 7 if ((document.getElementById("clock").className == "shown") && (bwClockCurrentType == type)) { 8 changeClass("clock","invisible"); // if the clock with the same type is showing, toggle it off 9 } else { // otherwise, turn it on and display the correct type 7 // type: type of clock "eventStartDate" or "eventEndDate" 8 if ((document.getElementById("clock").className == "visible") && (bwClockCurrentType == type)) { 9 // if the clock with the same type is visible, toggle it off 10 changeClass("clock","invisible"); 11 } else { 12 // otherwise, turn it on and display the correct type 13 changeClass("clock","visible"); 10 14 bwClockRequestedType = type; 11 15 bwClockCurrentType = type; 12 changeClass("clock","shown"); 13 // the following is for Internet Explorer. IE draws "windowed" objects 14 // and unwindowed objects on seperate "planes"; windowed objects are always 15 // drawn obove unwindowed objects and select boxes are "windowed"; 16 // this is required to make IE not overwrite the clock div with 17 // the select boxes that fall below it on the page. Note: we set them 18 // to display:hidden (not none) so their space is still occupied (and the 19 // browser window doesn't shift around) 20 changeClass("eventFormPrefLocationList","hidden"); 21 changeClass("eventFormLocationList","hidden"); 22 changeClass("eventFormSponsorList","hidden"); 23 changeClass("eventFormPrefSponsorList","hidden"); 24 bwClockIndicator = document.getElementById("bwClockDateTypeIndicator"); 16 // reset hours and minutes to null 17 bwClockHour = null; 18 bwClockMinute = null; 19 var bwClockIndicator = document.getElementById("bwClockDateTypeIndicator"); 20 var bwClockSwitch = document.getElementById("bwClockSwitch"); 21 document.getElementById("bwClockTime").innerHTML = "select time"; 25 22 if (type == 'eventStartDate') { 26 bwClockIndicator.innerHTML = "Start Time" 23 bwClockIndicator.innerHTML = "Start Time"; 24 bwClockSwitch.innerHTML = '<a href="javascript:bwClockLaunch(\'eventEndDate\');">switch to end</a>'; 27 25 } else { 28 bwClockIndicator.innerHTML = "End Time" 26 bwClockIndicator.innerHTML = "End Time"; 27 bwClockSwitch.innerHTML = '<a href="javascript:bwClockLaunch(\'eventStartDate\');">switch to start</a>'; 29 28 } 30 29 } … … 33 32 function bwClockClose() { 34 33 changeClass("clock","invisible"); 35 changeClass("eventFormPrefLocationList","shown");36 changeClass("eventFormLocationList","shown");37 changeClass("eventFormSponsorList","shown");38 changeClass("eventFormPrefSponsorList","shown");39 34 } 40 35 41 function bwClockUpdateDateTimeForm(type,val) { 36 function bwClockUpdateDateTimeForm(valType,val,hour24) { 37 // valType: "hour" or "minute" 38 // val: hour or minute value as integer 39 // hour24: true (24hr clock) or false (12hr clock + am/pm) 42 40 if (bwClockRequestedType) { 43 41 try { 44 if ( type == 'minute') {42 if (valType == 'minute') { 45 43 var fieldName = bwClockRequestedType + ".minute" 46 window.document.peForm[fieldName].value = val; 44 window.document.eventForm[fieldName].value = val; 45 if (val < 10) { 46 val = "0" + val; // pad the value for display 47 } 47 48 bwClockMinute = val; 48 49 } else { 49 50 var fieldName = bwClockRequestedType + ".hour" 50 window.document.peForm[fieldName].value = val; 51 bwClockHour = val; 51 if (hour24) { 52 window.document.eventForm[fieldName].value = val; 53 if (val < 10) { 54 val = "0" + val; // pad the value for display 55 } 56 bwClockHour = val; 57 } else { 58 var hour12 = val; 59 if (hour12 > 12) { 60 hour12 -= 12; 61 } else if (hour12 == 12) { 62 hour12 = 0; // noon and midnight are both represented by '0' in 12hr mode 63 } 64 window.document.eventForm[fieldName].value = hour12; 65 if (val < 10) { 66 val = "0" + val; // pad the value for display 67 } 68 bwClockHour = val; 69 // now set the am/pm field 70 fieldName = bwClockRequestedType + ".ampm"; 71 window.document.eventForm[fieldName].value = bwClockGetAmPm(bwClockHour); 72 } 52 73 } 53 74 if (bwClockHour && bwClockMinute) { … … 80 101 hour24 = parseInt(hour24,10); 81 102 if (hour24 < 12) { 82 return 'a .m.';103 return 'am'; 83 104 } else { 84 return 'p .m.';105 return 'pm'; 85 106 } 86 107 } trunk/deployment/webadmin/webapp/resources/default/default/default.xsl
r2042 r2054 2 2 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 3 3 <xsl:output 4 method=" html"4 method="xml" 5 5 indent="no" 6 6 media-type="text/html" … … 2792 2792 </tr> 2793 2793 2794 <!-- Submitter --> 2795 <xsl:if test="xproperties/X-BEDEWORK-SUBMITTEDBY"> 2796 <tr> 2797 <th> 2798 Submitter: 2799 </th> 2800 <td> 2801 <strong><xsl:value-of select="xproperties/X-BEDEWORK-SUBMITTEDBY/values/text"/></strong> 2802 </td> 2803 </tr> 2804 </xsl:if> 2805 2794 2806 <!-- Categories --> 2795 2807 <tr> trunk/deployment/webadmin/webapp/resources/resources/bwClock.js
r1309 r2054 17 17 bwClockHour = null; 18 18 bwClockMinute = null; 19 bwClockIndicator = document.getElementById("bwClockDateTypeIndicator");20 bwClockSwitch = document.getElementById("bwClockSwitch");19 var bwClockIndicator = document.getElementById("bwClockDateTypeIndicator"); 20 var bwClockSwitch = document.getElementById("bwClockSwitch"); 21 21 document.getElementById("bwClockTime").innerHTML = "select time"; 22 22 if (type == 'eventStartDate') { … … 37 37 // valType: "hour" or "minute" 38 38 // val: hour or minute value as integer 39 // hour24: true (24hr clock) or false (12hr clock + am/pm) 39 // hour24: true (24hr clock) or false (12hr clock + am/pm) 40 40 if (bwClockRequestedType) { 41 41 try { trunk/deployment/webconfig/webapp/resources/default/default/default.xsl
r1687 r2054 6 6 <!-- ==================================================================== --> 7 7 <!-- ==================================================================== --> 8 <xsl:output method="x html" indent="yes" media-type="text/html" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" standalone="yes" omit-xml-declaration="yes"/>8 <xsl:output method="xml" indent="yes" media-type="text/html" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" standalone="yes" omit-xml-declaration="yes"/> 9 9 <xsl:variable name="resourcesRoot" select="/bedework/appRoot"/> 10 10 <xsl:variable name="urlPrefix" select="/bedework/urlPrefix"/> trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/PDA/default.xsl
r1999 r2054 1 1 <?xml version="1.0" encoding="UTF-8"?> 2 2 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 3 <xsl:output method="x html"3 <xsl:output method="xml" 4 4 indent="yes" 5 5 media-type="text/html" trunk/deployment/webpublic/webapp/resources/demoskins/MainCampus/default/default/default.xsl
r2050 r2054 2 2 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 3 3 <xsl:output 4 method="x html"4 method="xml" 5 5 indent="no" 6 6 media-type="text/html" trunk/deployment/webpublic/webapp/resources/demoskins/SoEDepartmental/default/default/default.xsl
r1999 r2054 2 2 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 3 3 <xsl:output 4 method="x html"4 method="xml" 5 5 indent="no" 6 6 media-type="text/html" trunk/deployment/websubmit/webapp/resources/demoskins/default/default/default.xsl
r1979 r2054 2 2 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> 3 3 <xsl:output 4 method="x html"4 method="xml" 5 5 indent="no" 6 6 media-type="text/html" trunk/deployment/webuser/webapp/resources/demoskins/default/default/default.xsl
r2050 r2054 6 6 exclude-result-prefixes="url"> 7 7 <xsl:output 8 method="x html"8 method="xml" 9 9 indent="no" 10 10 media-type="text/html"
