|
|
|
@ -1,19 +1,17 @@ |
|
|
|
(function ($) { |
|
|
|
$(document).ready(function () { |
|
|
|
|
|
|
|
abp.widgets.CmsReactionSelection= function ($widget) { |
|
|
|
abp.widgets.CmsReactionSelection = function ($widget) { |
|
|
|
|
|
|
|
var getFilters = function () { |
|
|
|
return { |
|
|
|
|
|
|
|
}; |
|
|
|
function getFilters() { |
|
|
|
return {}; |
|
|
|
} |
|
|
|
|
|
|
|
var refresh = function (filters) { |
|
|
|
|
|
|
|
}; |
|
|
|
function refresh(filters) { |
|
|
|
location.reload(); //TODO: JUST TESTING !!!!!!!!
|
|
|
|
} |
|
|
|
|
|
|
|
var init = function (filters) { |
|
|
|
function init(filters) { |
|
|
|
var $wrapper = $widget.find('.cms-reaction-selection'); |
|
|
|
$widget.find('.cms-reaction-icon').each(function () { |
|
|
|
var $icon = $(this); |
|
|
|
@ -24,23 +22,22 @@ |
|
|
|
entityId: $wrapper.attr('data-entity-id'), |
|
|
|
reactionName: $icon.attr('data-name') |
|
|
|
}).then(function () { |
|
|
|
location.reload(); //TODO: JUST TESTING !!!!!!!!
|
|
|
|
refresh(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}; |
|
|
|
} |
|
|
|
|
|
|
|
return { |
|
|
|
getFilters: getFilters, |
|
|
|
init: init, |
|
|
|
refresh: refresh |
|
|
|
refresh: refresh, |
|
|
|
getFilters : getFilters |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
$('.abp-widget-wrapper[data-widget-name="CmsReactionSelection"]').each(function(){ |
|
|
|
var $widget = $(this); |
|
|
|
$('.abp-widget-wrapper[data-widget-name="CmsReactionSelection"]').each(function () { |
|
|
|
var widgetManager = new abp.WidgetManager({ |
|
|
|
wrapper: $widget.parent(), //TODO: Change to $widget once WidgetManager supports it!
|
|
|
|
wrapper: $(this), |
|
|
|
}); |
|
|
|
|
|
|
|
widgetManager.init(); |
|
|
|
|