camp modfications

This commit is contained in:
Ricsi
2017-06-16 20:49:46 +02:00
parent fa0e1a6488
commit f0d4bb9e7a
8 changed files with 25 additions and 19 deletions

View File

@@ -29,7 +29,7 @@
<div class="list_item" {if $camp->has_pending_apply() || $camp->has_deleted_apply()}style="background-color: #ff9205;"{/if}>
<img src="/_image/camp.png">
{$camp->get_camp_from()|substr:0:4}.
{$months[$camp->get_camp_from()|date_format:"%m"]}. {$camp->get_camp_from()|date_format:"%e"}. -
{$months[$camp->get_camp_from()|date_format:"%m"]} {$camp->get_camp_from()|date_format:"%e"}. -
{if $camp->get_camp_from()|date_format:"%m" != $camp->get_camp_to()|date_format:"%m"}
{$months[$camp->get_camp_to()|date_format:"%m"]}.
{/if}
@@ -78,7 +78,11 @@ $( document ).ready(function() {
$( ".list" ).find( divs ).hide();
var div_list = $( ".list" ).find( divs );
open_block(div_list[0].id);
//open_block(div_list[0].id);
//alert(div_list.length);
for (var i = 0; i <= div_list.length - 1; i++) {
open_block(div_list[i].id);
}
});