hide map for Character groups Quest Stations when there are no stations
This commit is contained in:
commit
df14dfafc3
4371 changed files with 1220224 additions and 0 deletions
|
|
@ -0,0 +1,37 @@
|
|||
/*!
|
||||
* Piwik - Web Analytics
|
||||
*
|
||||
* @link http://piwik.org
|
||||
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
||||
*/
|
||||
|
||||
$(document).ready(function () {
|
||||
|
||||
var uninstallConfirmMessage = '';
|
||||
|
||||
$('#plugins .uninstall').click(function (event) {
|
||||
event.preventDefault();
|
||||
|
||||
var link = $(this).attr('href');
|
||||
var pluginName = $(this).attr('data-pluginName');
|
||||
|
||||
if (!link || !pluginName) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!uninstallConfirmMessage) {
|
||||
uninstallConfirmMessage = $('#uninstallPluginConfirm').text();
|
||||
}
|
||||
|
||||
var messageToDisplay = uninstallConfirmMessage.replace('%s', pluginName);
|
||||
|
||||
$('#uninstallPluginConfirm').text(messageToDisplay);
|
||||
|
||||
piwikHelper.modalConfirm('#confirmUninstallPlugin', {
|
||||
yes: function () {
|
||||
window.location = link;
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue