Files
roi-theme/wp-content/plugins/thrive-ab-page-testing/assets/js/modals/archive.js
root a22573bf0b Commit inicial - WordPress Análisis de Precios Unitarios
- WordPress core y plugins
- Tema Twenty Twenty-Four configurado
- Plugin allow-unfiltered-html.php simplificado
- .gitignore configurado para excluir wp-config.php y uploads

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-03 21:04:30 -06:00

36 lines
706 B
JavaScript
Executable File

/**
* General Archive Modal
*/
module.exports = TVE_Dash.views.Modal.extend( {
template: TVE_Dash.tpl( 'modals/html-archive' ),
events: {
'click .tvd-modal-submit': 'submit'
},
initialize: function ( args ) {
TVE_Dash.views.Modal.prototype.initialize.apply( this, arguments );
this.$el.addClass( 'tvd-red' );
},
render: function () {
TVE_Dash.views.Modal.prototype.render.apply( this, arguments );
this.$( '.tvd-modal-close' ).addClass( 'tvd-white-text' );
return this;
},
submit: function () {
if ( typeof this.data['submit'] !== 'function' ) {
throw new Error( 'Submit data not implemented' );
}
this.data.submit.apply( this, arguments );
this.close();
}
} );