Next and Prev button of the datapicker does not appear

Asked

Viewed 842 times

0

Right and left button images do not appear.

inserir a descrição da imagem aqui

css files I installed:

<link rel="stylesheet" href="/css/jquery-ui.css"/>
    <link rel="stylesheet" href="/css/jquery-ui.min.css"/>
    <link rel="stylesheet" href="/css/jquery-ui.theme.css"/>

js:

<script src="/js/jquery-ui.min.js"></script> <script src="/js/jquery-ui.min.js"></script>

$("#data-checkin").datepicker({
                dateFormat: 'dd/mm/yy',
                dayNames: ['Domingo','Segunda','Terça','Quarta','Quinta','Sexta','Sábado','Domingo'],
                dayNamesMin: ['D','S','T','Q','Q','S','S','D'],
                dayNamesShort: ['Dom','Seg','Ter','Qua','Qui','Sex','Sáb','Dom'],
                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'],
                beforeShowDay: function (date) {
                    return [date.getDay() == 0, ""]
                }
            });

and put the images folder in the img folder inside the webroot folder.

  • It may be useful to mention which language/platform/framework you are using to do this datepicker.

  • Oops, I’m using cakephp framework.

  • I asked the question.

  • And as for the code you start the datepicker?

  • I asked the question too.

1 answer

1


You’ve probably changed the folder hierarchy for jQuery UI.

The briefcase images jQuery UI must be inside your folder /css/, because the paths to the images in css are relative, example:

.ui-icon,
.ui-widget-content .ui-icon {
  background-image: url("images/ui-icons_222222_256x240.png");
}
  • Stupid, I didn’t even see the way. Thanks

  • It happens, mainly on the part of jQuery not to make explicit that the folder hierarchy should be maintained.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.