mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -06:00
Minibar: call abstract_action with 'this' bound to minibar object
This commit is contained in:
@@ -41,6 +41,7 @@ function Minibar(server,opts) {
|
||||
|
||||
/* --- Creating the components of the minibar --------------------------- */
|
||||
this.translations=new Translations(server,this.options)
|
||||
this.translations.minibar=this; // ref to parent
|
||||
this.input=new Input(server,this.translations,this.options)
|
||||
|
||||
/* --- Creating user interface elements --------------------------------- */
|
||||
|
||||
@@ -103,7 +103,8 @@ Translations.prototype.show_translations=function(translationResults) {
|
||||
var tbody=empty("tbody");
|
||||
if(options.show_abstract && t.tree) {
|
||||
function abs_act() {
|
||||
self.options.abstract_action(t.tree)
|
||||
var minibar = self.minibar;
|
||||
bind(self.options.abstract_action,minibar)(t.tree)
|
||||
}
|
||||
var abs_hdr = options.abstract_action
|
||||
? button("Abstract",abs_act)
|
||||
|
||||
Reference in New Issue
Block a user