| | |
| | | /* |
| | | SpellCheck |
| | | jQuery'fied spell checker based on GoogieSpell 4.0 |
| | | Copyright (C) 2006 Amir Salihefendic |
| | | Copyright (C) 2009 Aleksander Machniak |
| | | Copyright (C) 2011 Kolab Systems AG |
| | | LICENSE |
| | | GPL |
| | | AUTHORS |
| | | 4mir Salihefendic (http://amix.dk) - amix@amix.dk |
| | | Aleksander Machniak - alec [at] alec.pl |
| | | +-----------------------------------------------------------------------+ |
| | | | Roundcube SpellCheck script | |
| | | | jQuery'fied spell checker based on GoogieSpell 4.0 | |
| | | | (which was published under GPL "version 2 or any later version") | |
| | | | | |
| | | | This file is part of the Roundcube Webmail client | |
| | | | Copyright (C) 2006 Amir Salihefendic | |
| | | | Copyright (C) 2009 The Roundcube Dev Team | |
| | | | Copyright (C) 2011 Kolab Systems AG | |
| | | | | |
| | | | Licensed under the GNU General Public License version 3 or | |
| | | | any later version with exceptions for skins & plugins. | |
| | | | See the README file for a full license statement. | |
| | | | | |
| | | +-----------------------------------------------------------------------+ |
| | | | Authors: 4mir Salihefendic <amix@amix.dk> | |
| | | | Aleksander Machniak - <alec [at] alec.pl> | |
| | | +-----------------------------------------------------------------------+ |
| | | |
| | | $Id$ |
| | | */ |
| | | |
| | | var GOOGIE_CUR_LANG, |
| | |
| | | |
| | | this.org_lang_to_word = { |
| | | "da": "Dansk", "de": "Deutsch", "en": "English", |
| | | "es": "Español", "fr": "Français", "it": "Italiano", |
| | | "nl": "Nederlands", "pl": "Polski", "pt": "Português", |
| | | "fi": "Suomi", "sv": "Svenska" |
| | | "es": "Español", "fr": "Français", "it": "Italiano", |
| | | "nl": "Nederlands", "pl": "Polski", "pt": "Português", |
| | | "ru": "Русский", "fi": "Suomi", "sv": "Svenska" |
| | | }; |
| | | this.lang_to_word = this.org_lang_to_word; |
| | | this.langlist_codes = this.array_keys(this.lang_to_word); |
| | |
| | | this.extra_menu_items.push([name, call_back_fn, checker]); |
| | | }; |
| | | |
| | | this.appendCustomMenuBuilder = function(eval, builder) |
| | | this.appendCustomMenuBuilder = function(eval_fn, builder) |
| | | { |
| | | this.custom_menu_builder.push([eval, builder]); |
| | | this.custom_menu_builder.push([eval_fn, builder]); |
| | | }; |
| | | |
| | | this.setFocus = function() |
| | |
| | | var changed = false; |
| | | for (var k=0; k<this.custom_menu_builder.length; k++) { |
| | | var eb = this.custom_menu_builder[k]; |
| | | if(eb[0]((this.results[id]))){ |
| | | if (eb[0](this.results[id])) { |
| | | changed = eb[1](this, list, elm); |
| | | break; |
| | | } |