Sha256: 500cf8dca98ee3a09965b1ea3c0490dfa099354f2ba5b632e19cc9ab81f456ca
Contents?: true
Size: 798 Bytes
Versions: 9
Compression:
Stored size: 798 Bytes
Contents
# Tabs enable_redactor = -> # Workaround for redactor and easytabs integration, # the problem is that not current redactors are not # clickable after init. unless window.redactor_settings window.redactor_settings = {} # after tab was clicked there is a workaround to turn on redactor $('#settings_tabs').bind 'easytabs:after', (event, $clicked, $targetPanel, settings) -> text_input = $targetPanel.find('.settings-redactor') if text_input.css("display") != "none" text_input.redactor window.redactor_settings # init redactor for the first visible tab $('#settings_tabs .settings-redactor:visible').redactor window.redactor_settings $ -> $('#settings_tabs').easytabs animate:true animationSpeed:0 tabActiveClass:"selected" enable_redactor()
Version data entries
9 entries across 9 versions & 1 rubygems