Example #1
0
 didInsertElement: function () {
   App.tooltip($('[rel=componentHealthTooltip]'));
   App.tooltip($('[rel=passiveTooltip]'));
   if (this.get('isInProgress')) {
     this.doBlinking();
   }
 },
Example #2
0
 didInsertElement: function () {
   App.tooltip(this.$('[data-toggle=tooltip]'),{
     placement: 'bottom',
     html: false
   });
   App.tooltip(this.$('[data-toggle=arrow-tooltip]'),{
     placement: 'top'
   });
   this.$(".version-info-bar-wrapper").stick_in_parent({parent: '#serviceConfig', offset_top: 10});
 },
Example #3
0
 didInsertElement: function () {
   this._super();
   this.$('.version-box').hoverIntent(function() {
     if ($(this).is(':hover')) {
       $(this).find('.version-popover').delay(700).fadeIn(200).end();
     }
   }, function() {
     $(this).find('.version-popover').stop().fadeOut(200).end();
   });
   App.tooltip(this.$('[data-toggle=tooltip]'), {
     placement: 'bottom'
   });
   App.tooltip(this.$('[data-toggle=arrow-tooltip]'), {
     placement: 'top'
   });
 },
Example #4
0
        didInsertElement: function () {
          var popupBody = this;
          this._super();
          App.tooltip(this.$('.corner-icon > .icon-save'), {
            title: Em.I18n.t('common.export')
          });
          this.$().closest('.modal').on('click', function (event) {
            if (!($(event.target).is('.corner-icon, .icon-save, .export-graph-list-container, .export-graph-list-container *'))) {
              popupBody.set('isExportMenuHidden', true);
            }
          });
          $('#modal').addClass('modal-graph-line');
          var popupSuffix = this.get('parentView.graph.popupSuffix');
          var id = this.get('parentView.graph.id');
          var idTemplate = id + '-{element}' + popupSuffix;

          this.set('containerId', idTemplate.replace('{element}', 'container'));
          this.set('containerClass', 'chart-container' + popupSuffix);
          this.set('yAxisId', idTemplate.replace('{element}', 'yaxis'));
          this.set('yAxisClass', this.get('yAxisId').replace(popupSuffix, ''));
          this.set('xAxisId', idTemplate.replace('{element}', 'xaxis'));
          this.set('xAxisClass', this.get('xAxisId').replace(popupSuffix, ''));
          this.set('legendId', idTemplate.replace('{element}', 'legend'));
          this.set('legendClass', this.get('legendId').replace(popupSuffix, ''));
          this.set('chartId', idTemplate.replace('{element}', 'chart'));
          this.set('chartClass', this.get('chartId').replace(popupSuffix, ''));
          this.set('titleId', idTemplate.replace('{element}', 'title'));
          this.set('titleClass', this.get('titleId').replace(popupSuffix, ''));
        },
Example #5
0
 didInsertElement: function () {
   var self = this;
   this.$().on('mouseleave', function () {
     self.set('isExportMenuHidden', true);
   });
   App.tooltip(this.$('.corner-icon > .icon-save'), {
     title: Em.I18n.t('common.export')
   });
 }
Example #6
0
 Em.run.next(this, function () {
   var icon = this.$('.corner-icon');
   if (icon) {
     icon.on('mouseover', function () {
       $(this).closest("[rel='ZoomInTooltip']").trigger('mouseleave');
     });
     App.tooltip(icon.children('.icon-save'), {
       title: Em.I18n.t('common.export')
     });
   }
 });
Example #7
0
  didInsertElement: function() {
    var self = this;

    this.set('isLoaded', false);
    App.router.get('updateController').updateHost(function () {
      self.set('isLoaded', true);
      if (!self.get('content.isLoaded')) {
        //if host is not existed then route to list of hosts
        App.router.transitionTo('main.hosts.index');
      }
    });
    App.tooltip($("[rel='HealthTooltip']"));
  }
Example #8
0
 didInsertElement: function () {
   var self = this;
   this.setYAxisFormatter();
   this.loadData();
   this.registerGraph();
   this.$().parent().on('mouseleave', function () {
     self.set('isExportMenuHidden', true);
   });
   App.tooltip(this.$("[rel='ZoomInTooltip']"), {
     placement: 'left',
     template: '<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner graph-tooltip"></div></div>'
   });
 },
Example #9
0
 didInsertElement: function(){
   App.tooltip($("[rel='queue-tooltip']"), {html: true, placement: "right"});
 },
Example #10
0
 it('should add tooltip', function() {
   var tooltip = App.tooltip($('#tooltip-test'));
   expect($('#tooltip-test').data('tooltip').enabled).to.eql(true);
 });
Example #11
0
 didInsertElement: function() {
   this._super();
   App.tooltip($("[rel='decommissionTooltip']"));
 },
Example #12
0
 didInsertElement: function () {
   App.tooltip(this.$("[rel='UsageTooltip']"));
   this.$(".accordion").on("show hide", function (e) {
     $(e.target).siblings(".accordion-heading").find("i.accordion-toggle").toggleClass('icon-caret-right icon-caret-down')
   });
 },
Example #13
0
 didInsertElement: function () {
   App.tooltip($(this.get('element')), {
     placement: "top",
     title: Em.I18n.t('hostPopup.bgop.abortRequest.title')
   });
 }
Example #14
0
 didInsertElement:function () {
   App.router.location.addObserver('lastSetURL', this, 'renderOnRoute');
   this.renderOnRoute();
   App.tooltip(this.$(".restart-required-service"), {html:true, placement:"right"});
 },
Example #15
0
 didInsertElement: function () {
   App.tooltip(this.$(".prompt-input"), {
     placement: "bottom",
     title: Em.I18n.t('services.service.actions.run.rebalanceHdfsNodes.promptTooltip')
   });
 }
Example #16
0
 didInsertElement: function () {
   App.tooltip(this.$("[rel='ZoomInTooltip']"), {placement : 'left'});
 },
 didInsertElement: function () {
   this.selectDefaultGroup();
   App.tooltip($('.properties-link'));
   App.tooltip($("[rel='button-info']"));
   App.tooltip($("[rel='button-info-dropdown']"), {placement: 'left'});
 },
Example #18
0
 addToolTip: function() {
   /* istanbul ignore next */
   if (this.get('controller.isAllServicesInstalled')) {
     App.tooltip($('.add-service-button a'), {title: Em.I18n.t('services.nothingToAdd')});
   }
 }.observes('controller.isAllServicesInstalled')
Example #19
0
 attachTooltip: function() {
   if ($('[rel=SummaryComponentHealthTooltip]').length) {
     App.tooltip($('[rel=SummaryComponentHealthTooltip]'));
   }
 },
Example #20
0
 didInsertElement: function() {
   App.tooltip($('[rel=SummaryComponentHealthTooltip]'));
 },
Example #21
0
 didInsertElement: function() {
   App.tooltip($('[rel=healthTooltip]'));
 },
Example #22
0
 didInsertElement: function () {
   this.updateToolTip();
   App.tooltip($("[rel='HealthTooltip']"));
   this.doBlink(); // check for blink availability
 }
Example #23
0
 didInsertElement: function() {
   App.tooltip($("[rel='tooltip']"));
 },
 didInsertElement: function() {
   this._super();
   App.tooltip(this.$('[rel="tooltip"]'));
 },
Example #25
0
 addToolTip: function() {
   if (this.get('addComponentDisabled')) {
     App.tooltip($('#add_component'), {title: Em.I18n.t('services.nothingToAdd')});
   }
 }.observes('addComponentDisabled'),
Example #26
0
 didInsertElement: function () {
   App.tooltip($('.recommended-value'), {
     title: upgradeVersion
   });
 }
Example #27
0
 didInsertElement: function () {
   App.tooltip($(this.get('element')));
 }