Created
April 28, 2020 13:25
-
-
Save minimul/e6e89d37ebe0a65b1cfcd5b3264e62b1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.App ||= {} | |
App.init = -> | |
App.Global.applyTooltips() | |
App.Global.applySelectize() | |
$(document).on "turbolinks:load", -> | |
App.init() | |
new App.ProformaLine($(@)).highlightErrors() | |
$(document).on "turbolinks:render", -> | |
App.Proforma.restoreScrollPosition() | |
$(document).on 'click', 'button.close', -> | |
$(@).parent().remove() | |
$(document).on "fields_added.nested_form_fields", (event, param) -> | |
App.Global.setSelectize($(event.target).find('.select-x')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment