Commits

grandse committed d24210f

Update styles for default date-time pickers.

  • Participants
  • Parent commits ed2e536
  • Branches default

Comments (0)

Files changed (2)

File admintools_bootstrap/static/admintools_bootstrap/js/init-ui.js

-$(function(){
+$(function() {
 	$('select').chosen();
+	$("a[rel=popover].top-icon").twipsy({offset: 20});
+	// Init date pickers
 	$('.vDateField').datepicker({dateFormat: 'yy-mm-dd'});
-	$("a[rel=popover].top-icon").twipsy({offset: 20});
+	$('.datetimeshortcuts a').live('click', function(e) {
+		var self = $(this);
+		if (self.attr('id') && self.attr('id').match(/calendarlink\d+/)) {
+			e.preventDefault();
+			var field = $('.vDateField', self.parent().parent());
+			if ($('#ui-datepicker-div').css('display') == 'block') {
+				field.datepicker('hide');
+			} else {
+				field.datepicker("show");
+			}
+		}
+	});
 });
-

File admintools_bootstrap/static/admintools_bootstrap/lib/style.less

 
 #result_list {
 	width: 100% !important;
+
+	th {
+		min-width: 80px;
+	}
 }
 
 .login .hero-unit {
 		margin-bottom: 0.5em;
 	}
 }
+
+.clockbox.module {
+	background: white;
+	padding: 5px;
+	border: 1px solid @grayLight;
+	.border-radius(3px);
+
+	ul, li {
+		list-style: none;
+	}
+}