mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-06-26 03:30:48 +03:00
Исправлена подгрузка активности
This commit is contained in:
parent
cef6ea93f0
commit
676bfdfdc8
|
@ -28,6 +28,7 @@
|
|||
{capture 'event_content'}
|
||||
{* Дата *}
|
||||
<time datetime="{date_format date=$event->getDateAdded() format='c' notz=1}"
|
||||
data-date="{date_format date=$event->getDateAdded() format='Y-m-d' notz=1}"
|
||||
class="{$component}-date"
|
||||
title="{date_format date=$event->getDateAdded()}">
|
||||
{date_format date=$event->getDateAdded() hours_back="12" minutes_back="60" now="60" day="day H:i" format="j F Y, H:i"}
|
||||
|
@ -82,7 +83,7 @@
|
|||
|
||||
{component 'item'
|
||||
element='li'
|
||||
classes="{$component} {cmods name=$component mods=$type}"
|
||||
classes="{$component} {cmods name=$component mods=$type} js-activity-event"
|
||||
mods='image-rounded'
|
||||
desc=$smarty.capture.event_content
|
||||
image=[
|
||||
|
|
|
@ -59,7 +59,7 @@
|
|||
* Получает дату последнего подгруженного события
|
||||
*/
|
||||
getDateLast: function() {
|
||||
return this.elements.list.find( this.option( 'selectors.event' ) ).last().find( 'time' ).attr( 'datetime' );
|
||||
return this.elements.list.find( this.option( 'selectors.event' ) ).last().find( 'time' ).data( 'date' );
|
||||
}
|
||||
});
|
||||
})(jQuery);
|
Loading…
Reference in a new issue