Fixed pop points in US detail
parent
997d803abd
commit
2242e84127
|
@ -240,6 +240,7 @@ UsStatusDetailDirective = () ->
|
|||
""")
|
||||
selectionPointsTemplate = _.template("""
|
||||
<ul class="popover pop-points-open">
|
||||
<li class="pop-points-selected"></li>
|
||||
<% _.each(points, function(point) { %>
|
||||
<li><a href="" class="point" title="<%- point.name %>"
|
||||
data-point-id="<%- point.id %>"><%- point.name %></a>
|
||||
|
@ -319,11 +320,13 @@ UsStatusDetailDirective = () ->
|
|||
event.stopPropagation()
|
||||
target = angular.element(event.currentTarget)
|
||||
updatingSelectedRoleId = target.data("role-id")
|
||||
target.siblings().removeClass('active')
|
||||
target.addClass('active')
|
||||
showSelectPoints()
|
||||
body = angular.element("body")
|
||||
body.one "click", (event) ->
|
||||
$el.find(".popover").hide()
|
||||
|
||||
target.removeClass('active')
|
||||
$el.on "click", ".point", (event) ->
|
||||
event.preventDefault()
|
||||
event.stopPropagation()
|
||||
|
|
|
@ -36,7 +36,7 @@ block content
|
|||
|
||||
section.us-detail-settings
|
||||
fieldset
|
||||
label.clickable.button.button-green(for="is-iocaine", ng-class="{true:'active', false:''}[task.is_iocaine]") Iocaine
|
||||
label.clickable.button.button-gray(for="is-iocaine", ng-class="{true:'active', false:''}[task.is_iocaine]") Iocaine
|
||||
input(ng-model="task.is_iocaine", type="checkbox", id="is-iocaine", name="is-iocaine")
|
||||
|
||||
a.button.button-gray.clickable(ng-show="!task.is_blocked", ng-click="ctrl.block()") Block
|
||||
|
|
|
@ -199,13 +199,17 @@
|
|||
.points-per-role {
|
||||
position: relative;
|
||||
> li {
|
||||
border-right: 1px solid $grayer;
|
||||
@include transition(color .3s linear);
|
||||
border-right: 1px solid rgba($grayer, .3);
|
||||
color: rgba($grayer, .3);
|
||||
display: inline-block;
|
||||
margin: .5rem .1rem;
|
||||
opacity: .3;
|
||||
position: relative;
|
||||
text-align: center;
|
||||
width: 18%;
|
||||
&.active {
|
||||
color: rgba($green-taiga, 1);
|
||||
}
|
||||
&:first-child {
|
||||
opacity: 1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue