ajax: relabel formula and automata around ltl3ba

Fixes #53.

* wrap/python/ajax/spotcgi.in: Do that.
* wrap/python/ajax/trans.html: Fixup jquery code to
avoid looping over tabs.
* wrap/python/spot_impl.i: Wrap the automaton relabeling code.
* NEWS: Update.
This commit is contained in:
Alexandre Duret-Lutz 2015-06-20 20:37:05 +02:00
parent 11c453d426
commit a9f4b01d9b
4 changed files with 22 additions and 26 deletions

View file

@ -165,9 +165,11 @@
$.spotvars.internalchange = false;
var o = $('input[name="o"]').val();
hideOrShowPanels(o, duration);
$("#output-tabs").tabs('option', 'active', $("#tabs-o" + o).index());
$("#output-tabs").tabs('option', 'active',
$('#output-tabs a[href="#tabs-o' + o + '"]').parent().index() - 1);
var t = $('input[name="t"]').val();
$("#translator-tabs").tabs('option', 'active', $('#tabs-t' + t).index());
$("#translator-tabs").tabs('option', 'active',
$('#translator-tabs a[href="#tabs-t' + t + '"]').parent().index() - 1);
updateResults();
}