modify tips in setting page

This commit is contained in:
MaysWind 2016-06-05 15:52:55 +08:00
parent 127f9a457d
commit 8ed39380e5
2 changed files with 8 additions and 2 deletions

View file

@ -126,6 +126,12 @@
}, function (value) { }, function (value) {
scope.optionValue = value; scope.optionValue = value;
}); });
scope.$watch(function () {
return scope.option;
}, function (value) {
angular.element('[data-toggle="popover"]').popover();
});
} }
}; };
}]); }]);

View file

@ -2,8 +2,8 @@
<div class="setting-key setting-key-without-desc col-sm-4"> <div class="setting-key setting-key-without-desc col-sm-4">
<span ng-bind="option.nameKey | translate"></span> <span ng-bind="option.nameKey | translate"></span>
<em ng-bind="'(' + option.key + ')'"></em> <em ng-bind="'(' + option.key + ')'"></em>
<i class="icon-primary fa fa-question-circle" data-toggle="tooltip" data-placement="right" <i class="icon-primary fa fa-question-circle" ng-if="(option.descriptionKey | translate) != ''"
title="{{option.descriptionKey | translate}}" ng-if="(option.descriptionKey | translate) != ''"></i> data-toggle="popover" data-trigger="hover" data-placement="bottom" data-container="body" data-content="{{option.descriptionKey | translate}}"></i>
<span class="description" ng-if="option.showCount && option.split && optionValue" <span class="description" ng-if="option.showCount && option.split && optionValue"
ng-bind="'format.settings.total-count' | translate: {count: getTotalCount()}"></span> ng-bind="'format.settings.total-count' | translate: {count: getTotalCount()}"></span>
</div> </div>