Commit ac421a57 authored by Martin Gregor's avatar Martin Gregor
Browse files

oprava bugov (ukladanie oprav, posuvanie popupu po preklade slova), zapnutie...

oprava bugov (ukladanie oprav, posuvanie popupu po preklade slova), zapnutie debugovania, po stlaceni enteru po zadani prekladu zavrie popup
parent 54f0f22c
......@@ -7,7 +7,7 @@ require __DIR__ . '/../vendor/autoload.php';
$configurator = new Nette\Config\Configurator;
// Enable Nette Debugger for error visualisation & logging
//$configurator->setDebugMode(FALSE);
$configurator->setDebugMode(TRUE);
$configurator->enableDebugger(__DIR__ . '/../log');
// Specify folder for cache
......
......@@ -16,7 +16,6 @@ class HomepagePresenter extends BasePresenter
private $words_lema = [];
private $en_words = [];
private $lematization_service = 'http://vm30.ucebne.fiit.stuba.sk:9000/lematizer/lematizer/lemmatize/fast';
// private $lematization_service = 'http://text.fiit.stuba.sk:8080/lematizer/services/lemmatizer/lemmatize/fast';
public function renderDefault()
{
......@@ -179,7 +178,7 @@ class HomepagePresenter extends BasePresenter
}
else
{
$word_en_id = $word_en_id->word_en_id;
$word_en_id = $word_en_id->id;
}
$word_sk_id = $this->db->table('word_translation')->select('word_sk_id')
->where(['translation_id' => $trans_id,'word_position' => $position])->fetch();
......
......@@ -39,9 +39,7 @@ $(function(){
$(this).popover('show');
}
});
$('.translation').on('click',function(){
$(this).popover('hide');
});
$('body').on('mouseleave','.popover',function(){
$(this).hide();
});
......@@ -136,4 +134,12 @@ $(function(){
word_en.toggleClass('hidden');
word_sk.toggleClass('hidden');
});
$('input.text').keypress(function(e){
if(e.which == 13)
{
e.preventDefault();
$(this).parent().parent().hide();
}
});
});
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment