| @@ -10,9 +10,9 @@ | ||
| 10 | 10 | store.actions.initializeStore() |
| 11 | 11 | } |
| 12 | 12 | |
| 13 | 13 | j(document).ready(function (j) { |
| 14 | - | |
| 14 | + | |
| 15 | 15 | let TemplateLibrary = function() { |
| 16 | 16 | j('#wpfnl-tab-create_funnel, .add-new-funnel-btn').on('click', this.showTemplateLibrary) |
| 17 | 17 | j('.wpfnl-modal-close').on('click', this.closeTemplateLibraryModal) |
| 18 | 18 | j('#create-first-step, #add-new-step').on('click', this.getStepTemplates) |
| @@ -24,8 +24,25 @@ | ||
| 24 | 24 | * @param e |
| 25 | 25 | */ |
| 26 | 26 | TemplateLibrary.prototype.showTemplateLibrary = function(e) { |
| 27 | 27 | e.preventDefault(); |
| 28 | + j('#create-funnel-loader').addClass('show'); | |
| 29 | + j('#template-library-modal').show(); | |
| 30 | + j('#wpfnl-create-funnel__inner-content').show(); | |
| 31 | + j('#wpfnl-create-steps_inner-content').hide(); | |
| 32 | + | |
| 33 | + j('.wpfnl-dashboard__header:not(.create-funnel__header)').hide(); | |
| 34 | + j('.wpfnl-dashboard__inner-content').hide(); | |
| 35 | + j('.wpfnl-funnel-settings__inner-content').hide(); | |
| 36 | + } | |
| 37 | + | |
| 38 | + /** | |
| 39 | + * show template library | |
| 40 | + * | |
| 41 | + * @param e | |
| 42 | + */ | |
| 43 | + TemplateLibrary.prototype.TemplateShowLibrary = function() { | |
| 44 | + | |
| 28 | 45 | j('#create-funnel-loader').addClass('show'); |
| 29 | 46 | j('#template-library-modal').show(); |
| 30 | 47 | j('#wpfnl-create-funnel__inner-content').show(); |
| 31 | 48 | j('#wpfnl-create-steps_inner-content').hide(); |