implement copying of Stations for Seminary copy feature
This commit is contained in:
commit
40a233fa7d
4342 changed files with 1215466 additions and 0 deletions
31
www/analytics/plugins/SEO/javascripts/rank.js
Normal file
31
www/analytics/plugins/SEO/javascripts/rank.js
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
/*!
|
||||
* Piwik - Web Analytics
|
||||
*
|
||||
* @link http://piwik.org
|
||||
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
||||
*/
|
||||
|
||||
$(document).ready(function () {
|
||||
function getRank() {
|
||||
var ajaxRequest = new ajaxHelper();
|
||||
ajaxRequest.setLoadingElement('#ajaxLoadingSEO');
|
||||
ajaxRequest.addParams({
|
||||
module: 'SEO',
|
||||
action: 'getRank',
|
||||
url: encodeURIComponent($('#seoUrl').val())
|
||||
}, 'get');
|
||||
ajaxRequest.setCallback(
|
||||
function (response) {
|
||||
$('#SeoRanks').html(response);
|
||||
}
|
||||
);
|
||||
ajaxRequest.setFormat('html');
|
||||
ajaxRequest.send(false);
|
||||
}
|
||||
|
||||
// click on Rank button
|
||||
$('#rankbutton').on('click', function () {
|
||||
getRank();
|
||||
return false;
|
||||
});
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue