diff options
author | sgiehl <stefan@piwik.org> | 2013-07-07 16:00:21 +0400 |
---|---|---|
committer | sgiehl <stefan@piwik.org> | 2013-07-07 16:00:21 +0400 |
commit | 3d9293cbbe521a942eeacb7655071e3b16b01e84 (patch) | |
tree | 2c4ef8cb1f58c97620d2050ddc7362719b99e7a2 /plugins/Dashboard | |
parent | 9dad6f3d57defdcb8b1466062c53159d807d46f3 (diff) |
fixed some jsdoc; removed some deprecated js functions that were already unused
Diffstat (limited to 'plugins/Dashboard')
-rw-r--r-- | plugins/Dashboard/javascripts/dashboardObject.js | 2 | ||||
-rw-r--r-- | plugins/Dashboard/javascripts/widgetMenu.js | 31 |
2 files changed, 1 insertions, 32 deletions
diff --git a/plugins/Dashboard/javascripts/dashboardObject.js b/plugins/Dashboard/javascripts/dashboardObject.js index b8f3dbb19d..67614dd231 100644 --- a/plugins/Dashboard/javascripts/dashboardObject.js +++ b/plugins/Dashboard/javascripts/dashboardObject.js @@ -475,7 +475,7 @@ /** * Save the current layout in database if it has changed - * @param {string} action + * @param {string} [action] action to perform (defaults to saveLayout) */ function saveLayout(action) { diff --git a/plugins/Dashboard/javascripts/widgetMenu.js b/plugins/Dashboard/javascripts/widgetMenu.js index 3be0597947..d4af3c0b29 100644 --- a/plugins/Dashboard/javascripts/widgetMenu.js +++ b/plugins/Dashboard/javascripts/widgetMenu.js @@ -65,37 +65,6 @@ widgetsHelper.getWidgetNameFromUniqueId = function (uniqueId) { }; /** - * Returns an parameter object to be used for an jquery ajax request to fetch the widget html - * - * @param {string} widgetUniqueId unique id of the widget - * @param {object} widgetParameters parameters to be used for loading the widget - * @param {function} onWidgetLoadedCallback callback to be executed after widget is loaded - * @return {object} - * @deprecated since 1.9.3 - will be removed in next major release. use widgetsHelper.loadWidgetAjax - */ -widgetsHelper.getLoadWidgetAjaxRequest = function (widgetUniqueId, widgetParameters, onWidgetLoadedCallback) { - var token_auth = broadcast.getValueFromUrl('token_auth'); - if (token_auth.length && token_auth != 'anonymous') { - widgetParameters['token_auth'] = token_auth; - } - var disableLink = broadcast.getValueFromUrl('disableLink'); - if (disableLink.length) { - widgetParameters['disableLink'] = disableLink; - } - - return { - widgetUniqueId: widgetUniqueId, - type: 'GET', - url: 'index.php', - dataType: 'html', - async: true, - error: piwikHelper.ajaxHandleError, - success: onWidgetLoadedCallback, - data: piwikHelper.getQueryStringFromParameters(widgetParameters) + "&widget=1&idSite=" + piwik.idSite + "&period=" + piwik.period + "&date=" + broadcast.getValueFromUrl('date') + "&token_auth=" + piwik.token_auth - }; -}; - -/** * Sends and ajax request to query for the widgets html * * @param {string} widgetUniqueId unique id of the widget |