This commit is contained in:
Rudis Muiznieks 2023-09-25 13:49:38 -05:00
parent f87bc43cfd
commit 94f91f28d0
Signed by: rudism
GPG Key ID: CABF2F86EF7884F9
2 changed files with 1 additions and 2 deletions

View File

@ -25,7 +25,7 @@ class KagiSummarizerExtension extends Minz_Extension {
public function addSummarizeButton(FreshRSS_Entry $entry): FreshRSS_Entry { public function addSummarizeButton(FreshRSS_Entry $entry): FreshRSS_Entry {
$this->registerTranslates(); $this->registerTranslates();
$entry->_content('<p class="kagi-summary"><a class="btn" onClick="kagiSummarize(\'testing\')" href="#">' . _t('ext.kagiSummarizer.ui.summarize_button') . '</a></p>' . $entry->content()); $entry->_content('<p class="kagi-summary"><a class="btn" onclick="kagiSummarize(\'testing\');" href="javascript:void(0);">' . _t('ext.kagiSummarizer.ui.summarize_button') . '</a></p>' . $entry->content());
return $entry; return $entry;
} }
} }

View File

@ -1,4 +1,3 @@
function kagiSummarize(url) { function kagiSummarize(url) {
console.log('got url', url); console.log('got url', url);
return false;
} }