Sha256: 29358ed66c2d29e2251da5c10e4c546ebd38b1fcb00d709e903f91c9e2655436

Contents?: true

Size: 387 Bytes

Versions: 4

Compression:

Stored size: 387 Bytes

Contents

$ ->
  $("body").on "click", "._toggle-pw-visibility", (event) ->
    passwordField = $("._pw-input")
    togglePassword = $("._pw-text-area")

    if passwordField.prop("type") is "password"
      passwordField.prop "type", "text"
      togglePassword.find("i").text "visibility"
    else
      passwordField.prop "type", "password"
      togglePassword.find("i").text "visibility_off"

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
card-mod-account-0.18.1 assets/script/toggle_visibility.js.coffee
card-mod-account-0.18.0 assets/script/toggle_visibility.js.coffee
card-mod-account-0.17.0 assets/script/toggle_visibility.js.coffee
card-mod-account-0.16.0 assets/script/toggle_visibility.js.coffee