Sha256: 10bf6bf28560e82a17bce77cbccffdae3132e3ac0f3413e62fd7a63eee807199

Contents?: true

Size: 456 Bytes

Versions: 68

Compression:

Stored size: 456 Bytes

Contents

(function() {
  // add the Markdown for a link to the selection
  $(document).on("change", "#coach-message-link-selection", function(event) {
    var intialContent, path, title;

    title = $(event.target.selectedOptions).text();
    path = $(event.target.selectedOptions).val();
    if (path !== "") {
      intialContent = $("#message_body").val();
      return $("#message_body").val(intialContent + " [" + title + "](" + path + ")");
    }
  });
})();

Version data entries

68 entries across 68 versions & 1 rubygems

Version Path
think_feel_do_engine-3.12.0 app/assets/javascripts/think_feel_do_engine/coach/messages/new.js
think_feel_do_engine-3.11.3 app/assets/javascripts/think_feel_do_engine/coach/messages/new.js
think_feel_do_engine-3.11.0 app/assets/javascripts/think_feel_do_engine/coach/messages/new.js
think_feel_do_engine-3.10.10 app/assets/javascripts/think_feel_do_engine/coach/messages/new.js
think_feel_do_engine-3.10.9 app/assets/javascripts/think_feel_do_engine/coach/messages/new.js
think_feel_do_engine-3.10.8 app/assets/javascripts/think_feel_do_engine/coach/messages/new.js
think_feel_do_engine-3.10.7 app/assets/javascripts/think_feel_do_engine/coach/messages/new.js
think_feel_do_engine-3.10.6 app/assets/javascripts/think_feel_do_engine/coach/messages/new.js