Merge branch 'MDL-66354-36' of http://github.com/dravek/moodle into MOODLE_36_STABLE
This commit is contained in:
+1
-1
@@ -1 +1 @@
|
||||
define(["jquery","core_calendar/selectors","core_calendar/events","core/str","core/templates"],function(a,b,c,d,e){var f=function(d){d.on("click",b.eventFilterItem,function(b){var c=a(b.currentTarget);g(c),b.preventDefault()}),a("body").on(c.viewUpdated,function(){var c=d.find(b.eventFilterItem);c.each(function(b,c){if(c=a(c),c.data("eventtype-hidden")){var d=i(c);h(d)}})})},g=function(a){var b=i(a);return b.hidden=!b.hidden,d.get_string("eventtype"+b.eventtype,"calendar").then(function(a){return b.name=a,b}).then(function(a){return e.render("core_calendar/event_filter_key",a)}).then(function(b,c){return e.replaceNode(a,b,c)}).then(function(){h(b)})},h=function(b){M.util.js_pending("month-mini-filterChanged"),a("body").trigger(c.filterChanged,{type:b.eventtype,hidden:b.hidden}),M.util.js_complete("month-mini-filterChanged")},i=function(a){return{eventtype:a.data("eventtype"),hidden:a.data("eventtype-hidden")}};return{init:function(b){b=a(b),f(b)}}});
|
||||
define(["jquery","core_calendar/selectors","core_calendar/events","core/str","core/templates"],function(a,b,c,d,e){var f=function(d){d.on("click",b.eventFilterItem,function(b){var c=a(b.currentTarget);g(c),b.preventDefault()}),a("body").on(c.viewUpdated,function(){var c=d.find(b.eventFilterItem);c.each(function(b,c){if(c=a(c),c.data("eventtype-hidden")){var d=i(c);h(d)}})})},g=function(a){var b=i(a);return b.hidden=!b.hidden,d.get_string("eventtype"+b.eventtype,"calendar").then(function(a){return b.name=a,b.icon=!0,b.key="i/"+b.eventtype+"event",b.component="core",b}).then(function(a){return e.render("core_calendar/event_filter_key",a)}).then(function(b,c){return e.replaceNode(a,b,c)}).then(function(){h(b)})},h=function(b){M.util.js_pending("month-mini-filterChanged"),a("body").trigger(c.filterChanged,{type:b.eventtype,hidden:b.hidden}),M.util.js_complete("month-mini-filterChanged")},i=function(a){return{eventtype:a.data("eventtype"),hidden:a.data("eventtype-hidden")}};return{init:function(b){b=a(b),f(b)}}});
|
||||
@@ -67,6 +67,9 @@ function(
|
||||
return Str.get_string('eventtype' + data.eventtype, 'calendar')
|
||||
.then(function(nameStr) {
|
||||
data.name = nameStr;
|
||||
data.icon = true;
|
||||
data.key = 'i/' + data.eventtype + 'event';
|
||||
data.component = 'core';
|
||||
|
||||
return data;
|
||||
})
|
||||
|
||||
@@ -3661,6 +3661,9 @@ function calendar_get_filter_types() {
|
||||
return [
|
||||
'eventtype' => $type,
|
||||
'name' => get_string("eventtype{$type}", "calendar"),
|
||||
'icon' => true,
|
||||
'key' => 'i/'.$type.'event',
|
||||
'component' => 'core'
|
||||
];
|
||||
}, $types);
|
||||
}
|
||||
|
||||
@@ -37,5 +37,5 @@
|
||||
{{#pix}} icon, {{modulename}} {{/pix}}
|
||||
{{/modulename}}
|
||||
{{^modulename}}
|
||||
{{#pix}} i/{{eventtype}}event, core {{/pix}}
|
||||
{{#icon}}{{#pix}} {{key}}, {{component}}, {{alttext}} {{/pix}}{{/icon}}
|
||||
{{/modulename}}
|
||||
|
||||
@@ -136,12 +136,7 @@
|
||||
{{$content}}
|
||||
{{#events}}
|
||||
<div data-popover-eventtype-{{calendareventtype}}="1">
|
||||
{{#modulename}}
|
||||
{{#pix}} icon, {{modulename}} {{/pix}}
|
||||
{{/modulename}}
|
||||
{{^modulename}}
|
||||
{{#pix}} i/{{eventtype}}event, core {{/pix}}
|
||||
{{/modulename}}
|
||||
{{> core_calendar/event_icon}}
|
||||
{{{popupname}}}
|
||||
</div>
|
||||
{{/events}}
|
||||
|
||||
Reference in New Issue
Block a user