This repository has been archived on 2024-07-18. You can view files and clone it, but cannot push or open issues or pull requests.
lwb5/site/static/beta5/js/pg_forums-en.js

54 lines
1.2 KiB
JavaScript
Raw Normal View History

2016-01-10 11:01:49 +01:00
function confirmDelete()
{
var i = countSelected();
if (i == 0)
{
alert('Please select the topic(s) you want to delete.');
return false;
}
return confirm('Please confirm you want to delete ' + (i > 1 ? ('these ' + i + ' topics') : 'this topic') + '.');
}
function confirmSticky()
{
var i = countSelected();
if (i == 0)
{
alert('Please select the topic(s) you want to switch to/from sticky.');
return false;
}
return confirm('Please confirm you want to switch ' + (i > 1 ? ('these ' + i + ' topics') : 'this topic') + ' to/from sticky.');
}
function confirmMove()
{
var i = countSelected();
if (i == 0)
{
alert('Please select the topic(s) you want to move.');
return false;
}
var e = document.getElementById('mdest');
if (e.options[e.selectedIndex].value == '')
{
alert('Please select the forum to which the topic'+(i>1?'s':'')+' must be moved.');
return false;
}
return confirm(
'Please confirm you want to move the selected topic' + (i>1?'s':'') + '\nto the "'
+ e.options[e.selectedIndex].text + '" forum.'
);
}
function confirmDTopic()
{
return confirm('Deleting this post will delete the whole topic. Please confirm.');
}
function confirmDPost()
{
return confirm('Please confirm you want to delete this post.');
}