Sha256: 0398b0692979fd1a48bd9d3f373fe12e428908169a1b557a425da5bdafcc2844

Contents?: true

Size: 569 Bytes

Versions: 28

Compression:

Stored size: 569 Bytes

Contents

.task_comment-increment-buttons.text-center
 - Dorsale::Flyboy.progress_increment_buttons.each do |value|
    button.btn.btn-xs.increment type="button" data-value=value
      = "+" if value.positive?
      = "-" if value.negative?
      = value.abs

coffee:
  $("button.increment").click ->
    current   = parseInt $("#task_comment_progress").val()
    increment = parseInt this.dataset.value
    newValue  = current + increment
    newValue  = 0   if newValue < 0
    newValue  = 100 if newValue > 100
    $("#task_comment_progress").val(newValue)
    $(this).blur()

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
dorsale-4.0.0 app/views/dorsale/flyboy/task_comments/_increment_buttons.html.slim
dorsale-3.20.0 app/views/dorsale/flyboy/task_comments/_increment_buttons.html.slim
dorsale-3.19.1 app/views/dorsale/flyboy/task_comments/_increment_buttons.html.slim
dorsale-3.19.0 app/views/dorsale/flyboy/task_comments/_increment_buttons.html.slim
dorsale-3.18.0 app/views/dorsale/flyboy/task_comments/_increment_buttons.html.slim
dorsale-3.17.0 app/views/dorsale/flyboy/task_comments/_increment_buttons.html.slim
dorsale-3.16.0 app/views/dorsale/flyboy/task_comments/_increment_buttons.html.slim
dorsale-3.15.0 app/views/dorsale/flyboy/task_comments/_increment_buttons.html.slim
dorsale-3.14.11 app/views/dorsale/flyboy/task_comments/_increment_buttons.html.slim
dorsale-3.14.10 app/views/dorsale/flyboy/task_comments/_increment_buttons.html.slim
dorsale-3.14.9 app/views/dorsale/flyboy/task_comments/_increment_buttons.html.slim
dorsale-3.14.8 app/views/dorsale/flyboy/task_comments/_increment_buttons.html.slim
dorsale-3.14.7 app/views/dorsale/flyboy/task_comments/_increment_buttons.html.slim
dorsale-3.14.6 app/views/dorsale/flyboy/task_comments/_increment_buttons.html.slim
dorsale-3.14.5 app/views/dorsale/flyboy/task_comments/_increment_buttons.html.slim
dorsale-3.14.4 app/views/dorsale/flyboy/task_comments/_increment_buttons.html.slim
dorsale-3.14.3 app/views/dorsale/flyboy/task_comments/_increment_buttons.html.slim
dorsale-3.14.2 app/views/dorsale/flyboy/task_comments/_increment_buttons.html.slim
dorsale-3.14.1 app/views/dorsale/flyboy/task_comments/_increment_buttons.html.slim
dorsale-3.14.0 app/views/dorsale/flyboy/task_comments/_increment_buttons.html.slim