Przeglądaj źródła

change ordering of listview columns

Adam Shaw 9 lat temu
rodzic
commit
e47e009b7d
2 zmienionych plików z 9 dodań i 5 usunięć
  1. 5 5
      src/list/ListView.js
  2. 4 0
      src/list/list.css

+ 5 - 5
src/list/ListView.js

@@ -209,6 +209,11 @@ var ListViewGrid = Grid.extend({
 		}
 
 		return '<tr class="' + classes.join(' ') + '">' +
+			(view.opt('listTime') ?
+				'<td class="fc-list-item-time ' + view.widgetContentClass + '">' +
+					timeHtml +
+				'</td>' :
+				'') +
 			'<td class="fc-list-item-marker ' + view.widgetContentClass + '">' +
 				'<span class="fc-event-dot"' +
 				(bgColor ?
@@ -216,11 +221,6 @@ var ListViewGrid = Grid.extend({
 					'') +
 				'></span>' +
 			'</td>' +
-			(view.opt('listTime') ?
-				'<td class="fc-list-item-time ' + view.widgetContentClass + '">' +
-					timeHtml +
-				'</td>' :
-				'') +
 			'<td class="fc-list-item-title ' + view.widgetContentClass + '">' +
 				'<a' + (url ? ' href="' + htmlEscape(url) + '"' : '') + '>' +
 					htmlEscape(seg.event.title) +

+ 4 - 0
src/list/list.css

@@ -69,6 +69,10 @@
 	width: 1px;
 }
 
+/* make the dot closer to the event title */
+.fc-ltr .fc-list-item-marker { padding-right: 0; }
+.fc-rtl .fc-list-item-marker { padding-left: 0; }
+
 .fc-list-item-title a {
 	/* every event title cell has an <a> tag */
 	text-decoration: none;