[Tickets #4474] spellcheck on Safari

bugs@bugs.horde.org bugs at bugs.horde.org
Thu Oct 5 07:25:38 PDT 2006


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=4474
-----------------------------------------------------------------------
 Ticket             | 4474
 Updated By         | reitsma at denison.edu
 Summary            | spellcheck on Safari
 Queue              | DIMP
 Type               | Bug
 State              | Assigned
 Priority           | 3. High
 Owners             | Horde Developers
-----------------------------------------------------------------------


reitsma at denison.edu (2006-10-05 07:25) wrote:

We found that simplifying the targetValue function in
imp/js/SpellChecker.js from:

    targetValue: function(value)
    {
        // Ensure we have the correct input.
        this.input = $(this.target);
   
        if (value) {
            if (typeof this.input.value == 'undefined') {
                this.input.innerHTML = value;
            } else {
                this.input.value = value;
            }
        }
        return (typeof this.input.value == 'undefined') ?
this.input.innerHTML : this.input.value;
    },

to:

    targetValue: function(value)
    {
        if (value) {
            this.input.innerHTML = value;
            this.input.value = value;
        }
        return (typeof this.input.value == 'undefined') ?
this.input.innerHTML : this.input.value;
    },


solved the problem for Safari without breaking any of the other browsers
we tested.




More information about the bugs mailing list