Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Dashboard/templates/widgetMenu.js')
-rw-r--r--plugins/Dashboard/templates/widgetMenu.js12
1 files changed, 5 insertions, 7 deletions
diff --git a/plugins/Dashboard/templates/widgetMenu.js b/plugins/Dashboard/templates/widgetMenu.js
index 6556b9085f..997c87158f 100644
--- a/plugins/Dashboard/templates/widgetMenu.js
+++ b/plugins/Dashboard/templates/widgetMenu.js
@@ -55,7 +55,7 @@ widgetsHelper.getLoadWidgetAjaxRequest = function (widgetUniqueId, widgetParamet
return ajaxRequest;
};
-widgetsHelper.getEmptyWidgetHtml = function (uniqueId, widgetName, widgetLoadingString)
+widgetsHelper.getEmptyWidgetHtml = function (uniqueId, widgetName)
{
return '<div id="'+uniqueId+'" class="widget">'+
'<div class="widgetTop">'+
@@ -66,7 +66,7 @@ widgetsHelper.getEmptyWidgetHtml = function (uniqueId, widgetName, widgetLoading
'</div>'+
'<div class="widgetContent">'+
'<div class="widgetLoading">'+
- widgetLoadingString +
+ _pk_translate('Dashboard_LoadingWidget_js') +
'</div>'+
'</div>'+
'</div>';
@@ -194,10 +194,7 @@ widgetMenu.prototype =
widgetUniqueId,
'<div title="'+_pk_translate("Dashboard_AddPreviewedWidget_js")+'">'+
_pk_translate('Dashboard_WidgetPreview_js')+
- '</div>',
- '<span id="loadingPiwik">'+
- '<img src="themes/default/images/loading-blue.gif"> ' +_pk_translate('Dashboard_LoadingWidget_js') +
- '</span>'
+ '</div>'
);
$('#sub3').html(emptyWidgetHtml);
@@ -231,6 +228,7 @@ widgetMenu.prototype =
self.filterOutAlreadyLoadedWidget();
$.blockUI({
message: self.menuElement,
+ centerY: 0,
css: {width:'', top: '5%',left:'10%', right:'10%', margin:"0px", textAlign:'', cursor:'', border:'0px'}
});
}
@@ -309,7 +307,7 @@ widgetMenu.prototype =
);
$.extend($.blockUI.defaults.overlayCSS, { backgroundColor: '#000000', opacity: '0.4'});
$.extend($.blockUI.defaults,{ fadeIn: 0, fadeOut: 0 });
- $(window).keydown( function(e) {
+ $(document).keydown( function(e) {
var key = e.keyCode || e.which;
if(key == 27) {
self.hideMenu();