[refs #921] fix show-hide filter

This commit is contained in:
Alexander Machehin 2013-02-21 01:00:40 +06:00
parent fef0ed2534
commit 1c4ec45639
2 changed files with 10 additions and 11 deletions

View File

@ -101,15 +101,4 @@ $(document).ready(function() {
dateFormat: 'dd/mm/yy',
showButtonPanel: true
});
$(".switch").toggle(
function () {
$(".filter").hide("slow");
$(".switch a").text("#{t 'layout.show'}");
},
function () {
$(".filter").show("slow");
$(".switch a").text("#{t 'layout.hide'}");
}
);
});

View File

@ -73,6 +73,16 @@
.switch
%a{:href => "#"}= t 'layout.hide'
:javascript
$(".switch").toggle(
function () {
$(".filter").hide("slow");
$(".switch a").text("#{t 'layout.show'}");
},
function () {
$(".filter").show("slow");
$(".switch a").text("#{t 'layout.hide'}");
}
);
#{if I18n.locale == :ru
"$.datepicker.regional['ru'] = {
closeText: 'Закрыть',