Sha256: a121b5afec63a70315016a79dce57270c1bce1094d363017ab765fea20bd6cf7
Contents?: true
Size: 527 Bytes
Versions: 7
Compression:
Stored size: 527 Bytes
Contents
@Remetric ||= {} @Remetric.messages = events: -> $(document).on "click", ".open_send_message", -> trackable_ids = [] $(".trackable_checkbox:checked").each -> trackable_ids.push this.value count = trackable_ids.length count_word = if count == 1 then "Contact" else "Contacts" if count == 0 alert "Please choose at least 1 contact." else $("#message_trackable_ids").val trackable_ids.join() $("#to").val "#{count} #{count_word}" Remetric.dialog.open "send_message" false
Version data entries
7 entries across 7 versions & 1 rubygems