non-js-buttons
This commit is contained in:
parent
8404cb5ad3
commit
e1d35d1e94
3 changed files with 14 additions and 6 deletions
|
@ -1,3 +1,6 @@
|
|||
0.4.7:
|
||||
Added non-js-buttons in commentlist
|
||||
|
||||
0.4.6:
|
||||
Smartified backend-menu
|
||||
Added pagination to database-table
|
||||
|
|
|
@ -25,6 +25,7 @@ function ham(id) {
|
|||
setLoadIndicator(id);
|
||||
}
|
||||
httpRequest.send('id='+id+'&category=ham'); // Start request
|
||||
return false;
|
||||
}
|
||||
|
||||
function spam(id) {
|
||||
|
@ -51,7 +52,7 @@ function spam(id) {
|
|||
setLoadIndicator(id);
|
||||
}
|
||||
httpRequest.send('id='+id+'&category=spam'); // Start request
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
function setLoadIndicator(id) {
|
||||
|
|
|
@ -36,7 +36,7 @@ class serendipity_event_spamblock_bayes extends serendipity_event {
|
|||
$this->title = PLUGIN_EVENT_SPAMBLOCK_BAYES_NAME;
|
||||
$propbag->add ( 'description', PLUGIN_EVENT_SPAMBLOCK_BAYES_DESC);
|
||||
$propbag->add ( 'name', $this->title);
|
||||
$propbag->add ( 'version', '0.4.6.2' );
|
||||
$propbag->add ( 'version', '0.4.7' );
|
||||
$propbag->add ( 'event_hooks', array ('frontend_saveComment' => true,
|
||||
'backend_spamblock_comments_shown' => true,
|
||||
'external_plugin' => true,
|
||||
|
@ -1140,14 +1140,18 @@ class serendipity_event_spamblock_bayes extends serendipity_event {
|
|||
|
||||
$eventData['action_more'] = '<a id="ham'. $comment ['id'] .'"
|
||||
class="serendipityIconLink spamblockBayesControls"
|
||||
onclick="ham('. $comment ['id'].')"
|
||||
title="'. PLUGIN_EVENT_SPAMBLOCK_BAYES_NAME . ': ' . PLUGIN_EVENT_SPAMBLOCK_BAYES_HAM .'"><img
|
||||
onclick="return ham('. $comment ['id'].')"
|
||||
title="'. PLUGIN_EVENT_SPAMBLOCK_BAYES_NAME . ': ' . PLUGIN_EVENT_SPAMBLOCK_BAYES_HAM .'"
|
||||
href="'. $serendipity['baseURL'] . 'index.php?/plugin/learnAction&action=approve&category=ham&id=' . $eventData['id'] . '&entry_id='. $eventData['entry_id'] . '"
|
||||
><img
|
||||
src="'. serendipity_getTemplateFile ( 'admin/img/accept.png' ) .'"
|
||||
alt="" />'. PLUGIN_EVENT_SPAMBLOCK_BAYES_HAM.'</a> <a
|
||||
id="spam'. $comment ['id'].'"
|
||||
class="serendipityIconLink spamblockBayesControls"
|
||||
onclick="spam('. $comment ['id'] .')"
|
||||
title="'. PLUGIN_EVENT_SPAMBLOCK_BAYES_NAME . ': ' . PLUGIN_EVENT_SPAMBLOCK_BAYES_SPAM .'"><img
|
||||
onclick="return spam('. $comment ['id'] .')"
|
||||
title="'. PLUGIN_EVENT_SPAMBLOCK_BAYES_NAME . ': ' . PLUGIN_EVENT_SPAMBLOCK_BAYES_SPAM .'"
|
||||
href="'. $serendipity['baseURL'] . 'index.php?/plugin/learnAction&action=delete&category=spam&id=' . $eventData['id'] . '&entry_id='. $eventData['entry_id'] . '"
|
||||
><img
|
||||
src="'. $imgpath . 'spamblock_bayes.spam.png' .'"
|
||||
alt="" />'. PLUGIN_EVENT_SPAMBLOCK_BAYES_SPAM.'</a>
|
||||
<span class="spamblockBayesRating">
|
||||
|
|
Loading…
Reference in a new issue