~jstys-z/helioviewer.org/client5

« back to all changes in this revision

Viewing changes to lib/helioviewer/EventMarker.js

  • Committer: V. Keith Hughitt
  • Date: 2009-04-01 21:08:05 UTC
  • Revision ID: hughitt1@kore-20090401210805-372f7dgih07vxk42
nightly build 04-01-2009

Show diffs side-by-side

added added

removed removed

Lines of Context:
77
77
         * @description Creates a small block of text which is displayed when the user pressed the "d" key ("details").
78
78
         */
79
79
        createLabel: function () {
80
 
                var display = (this.eventLayer.displayLabels ? "inline" : "none"),
 
80
                var display = this.eventLayer.viewport.controller.layerManager.getLabelVisibility(),
81
81
                        labelText = this.getLabelText(this.type),
82
82
                
83
83
                        //Determine time difference between desired time and event time
248
248
                        top:  (this.pos.y - 2) + 'px'
249
249
                });
250
250
        },
251
 
 
252
 
        /**
253
 
         * @description Toggles event label visibility
254
 
         */     
255
 
        toggleLabel: function () {
256
 
                this.label.toggle();
257
 
        },
258
251
        
259
252
        /**
260
253
         * @description Toggle event popup visibility