- 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>
36 lines
662 B
JavaScript
Executable File
36 lines
662 B
JavaScript
Executable File
/**
|
|
* Created by Ovidiu on 7/21/2017.
|
|
*/
|
|
var _instance = null,
|
|
_utils = require( '../_utils' );
|
|
|
|
module.exports = TVE.modal.base.extend( {
|
|
after_initialize: function () {
|
|
this.$el.addClass( 'medium' );
|
|
},
|
|
reset: function () {
|
|
var self = this;
|
|
_utils.tpl_ajax( {
|
|
custom: 'reset'
|
|
} ).done( function ( response ) {
|
|
_utils.insertResponse( response );
|
|
self.close();
|
|
TVE.main.overlay( 'close' );
|
|
} );
|
|
}
|
|
}, {
|
|
/**
|
|
* "Singleton" implementation for modal instance
|
|
*
|
|
* @param el
|
|
*/
|
|
get_instance: function ( el ) {
|
|
if ( ! _instance ) {
|
|
_instance = new TVE_Ult_Int.DesignReset( {
|
|
el: el
|
|
} );
|
|
}
|
|
|
|
return _instance;
|
|
}
|
|
} ); |