diff --git a/src/www/minibar/minibar_input.js b/src/www/minibar/minibar_input.js index a1f4a3aec..a2f72bde1 100644 --- a/src/www/minibar/minibar_input.js +++ b/src/www/minibar/minibar_input.js @@ -73,12 +73,20 @@ Input.prototype.change_language=function () { } +Input.prototype.clear_all2=function() { + with(this) { + current.input=""; + previous=null; + clear(surface) + if(surface.typed) surface.appendChild(surface.typed) + } +} + + Input.prototype.clear_all1=function() { with(this) { remove_typed_input(); - current.input=""; - previous=null; - surface.innerHTML=""; + clear_all2(); translations.clear(); } } @@ -224,12 +232,14 @@ Input.prototype.generate_random=function() { } Input.prototype.add_words=function(s) { - with(this) { - var ws=s.split(" "); - for(var i=0;i