[Checkins] SVN: zc.datetimewidget/branches/gintas-dateranges/src/zc/datetimewidget/resources/calendar.js Add an extra Close button to make multiselect buttons more intuitive.

Gintautas Miliauskas gintas at pov.lt
Wed Dec 6 09:39:36 EST 2006


Log message for revision 71444:
  Add an extra Close button to make multiselect buttons more intuitive.
  

Changed:
  U   zc.datetimewidget/branches/gintas-dateranges/src/zc/datetimewidget/resources/calendar.js

-=-
Modified: zc.datetimewidget/branches/gintas-dateranges/src/zc/datetimewidget/resources/calendar.js
===================================================================
--- zc.datetimewidget/branches/gintas-dateranges/src/zc/datetimewidget/resources/calendar.js	2006-12-06 14:28:55 UTC (rev 71443)
+++ zc.datetimewidget/branches/gintas-dateranges/src/zc/datetimewidget/resources/calendar.js	2006-12-06 14:39:35 UTC (rev 71444)
@@ -935,6 +935,16 @@
 	}
 	this.tooltips = cell;
 
+        // Customization: add an extra "Close" button at the bottom for
+        // multi multi-select calendars to make them more intuitive.
+        if (this.multiple != null) {
+            row = Calendar.createElement("tr", tfoot);
+            row.className = "footrow";
+            cell = Calendar.createElement("td", row);
+            hh(Calendar._TT["CLOSE"], this.weekNumbers ? 6 : 5, 200);
+            cell = Calendar.createElement("td", row);
+        }
+
 	div = Calendar.createElement("div", this.element);
 	this.monthsCombo = div;
 	div.className = "combo";



More information about the Checkins mailing list