Ver código fonte

move some more stuff

Adam Shaw 8 anos atrás
pai
commit
705ae783cb
2 arquivos alterados com 30 adições e 34 exclusões
  1. 0 34
      src/common/TimeGrid.events.js
  2. 30 0
      src/common/TimeGrid.js

+ 0 - 34
src/common/TimeGrid.events.js

@@ -402,40 +402,6 @@ TimeGrid.mixin({
 	},
 
 
-	/* Highlight
-	------------------------------------------------------------------------------------------------------------------*/
-
-
-	renderHighlightSegs: function(segs) {
-		segs = this.fillSystem.buildSegEls('highlight', segs);
-		this.updateSegVerticals(segs);
-		this.attachSegsByCol(this.groupSegsByCol(segs), this.highlightContainerEls);
-		this.highlightSegs = segs;
-	},
-
-
-	unrenderHighlightSegs: function() {
-		this.unrenderNamedSegs('highlightSegs');
-	},
-
-
-	/* Business Hours
-	------------------------------------------------------------------------------------------------------------------*/
-
-
-	renderBusinessSegs: function(segs) {
-		segs = this.fillSystem.buildSegEls('businessHours', segs);
-		this.updateSegVerticals(segs);
-		this.attachSegsByCol(this.groupSegsByCol(segs), this.businessContainerEls);
-		this.businessSegs = segs;
-	},
-
-
-	unrenderBusinessSegs: function() {
-		this.unrenderNamedSegs('businessSegs');
-	},
-
-
 	/* Seg Rendering Utils
 	------------------------------------------------------------------------------------------------------------------*/
 

+ 30 - 0
src/common/TimeGrid.js

@@ -466,6 +466,36 @@ var TimeGrid = FC.TimeGrid = ChronoComponent.extend(CoordChronoComponentMixin, S
 	},
 
 
+	renderBusinessSegs: function(segs) {
+		segs = this.fillSystem.buildSegEls('businessHours', segs);
+		this.updateSegVerticals(segs);
+		this.attachSegsByCol(this.groupSegsByCol(segs), this.businessContainerEls);
+		this.businessSegs = segs;
+	},
+
+
+	unrenderBusinessSegs: function() {
+		this.unrenderNamedSegs('businessSegs');
+	},
+
+
+	/* Highlight
+	------------------------------------------------------------------------------------------------------------------*/
+
+
+	renderHighlightSegs: function(segs) {
+		segs = this.fillSystem.buildSegEls('highlight', segs);
+		this.updateSegVerticals(segs);
+		this.attachSegsByCol(this.groupSegsByCol(segs), this.highlightContainerEls);
+		this.highlightSegs = segs;
+	},
+
+
+	unrenderHighlightSegs: function() {
+		this.unrenderNamedSegs('highlightSegs');
+	},
+
+
 	/* Now Indicator
 	------------------------------------------------------------------------------------------------------------------*/