mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-01 15:22:50 -06:00
minibar: adding a start category menu
+ The start category menu can be turned off by passing the option
{startcat_menu:false} when starting the minibar.
+ Documentation updates.
This commit is contained in:
@@ -38,8 +38,9 @@ Translations.prototype.clear=function() {
|
||||
this.main.innerHTML="";
|
||||
}
|
||||
|
||||
Translations.prototype.translateFrom=function(current) {
|
||||
Translations.prototype.translateFrom=function(current,startcat) {
|
||||
this.current=current;
|
||||
this.startcat=startcat;
|
||||
this.get_translations();
|
||||
}
|
||||
|
||||
@@ -47,10 +48,10 @@ Translations.prototype.get_translations=function() {
|
||||
with(this) {
|
||||
var c=current;
|
||||
if(options.show_grouped_translations)
|
||||
server.translategroup({from:c.from,input:c.input},
|
||||
server.translategroup({from:c.from,input:c.input,cat:startcat},
|
||||
bind(show_groupedtranslations,this));
|
||||
else
|
||||
server.translate({from:c.from,input:c.input},
|
||||
server.translate({from:c.from,input:c.input,cat:startcat},
|
||||
bind(show_translations,this));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user