WordPress.org

Ready to get started?Download WordPress

Forums

Auto ThickBox Plus
Buttons (select color) does not work after add a custom script for translate dat (1 post)

  1. Joseneas
    Member
    Posted 1 year ago #

    Hi,

    I added a script simply for translate the calendar jQuery and the buttons of Auto ThickBox Plus does not work.

    Here the example of code jQuery:

    jQuery(document).ready(function($){
            $.datepicker.regional['pt'] = {
    	closeText: 'Fechar',
    	prevText: 'Anterior',
    	nextText: 'Próximo',
    	currentText: 'Hoje',
    	monthNames: ['Janeiro','Fevereiro','Março','Abril','Maio','Junho','Julho','Agosto','Setembro','Outubro','Novembro','Dezembro'],
    	monthNamesShort: ['Jan','Fev','Mar','Abr','Mai','Jun','Jul','Ago','Set','Out','Nov','Dez'],
    	dayNames: ['Domingo','Segunda-Feira','Terça-Feira','Quarta-Feira','Quinta-Feira','Sexta-Feira','Sábado'],
    	dayNamesShort: ['Dom','Seg','Ter','Qua','Qui','Sex','Sáb'],
    	dayNamesMin: ['Dom','Seg','Ter','Qua','Qui','Sex','Sáb'],
    	weekHeader: 'KW',
    	dateFormat: 'dd/mm/yy',
    	firstDay: 1,
    	isRTL: false,
    	showMonthAfterYear: false,
    	yearSuffix: ''};
     	$.datepicker.setDefaults($.datepicker.regional['pt']);
    });

    This script is called by the function wp_enqueue_script().

    Any idea how to fix this?

    Thanks.

    http://wordpress.org/extend/plugins/auto-thickbox-plus/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic