Opened 8 years ago

Closed 8 years ago

Last modified 7 years ago

#15354 closed defect (fixed)

placeholder in mobile TextBox not subject to mobile i18n substitution

Reported by: freemant2000 Owned by: Douglas Hays
Priority: undecided Milestone: 1.8
Component: DojoX Mobile Version: 1.7.2
Keywords: Cc: Eric Durocher
Blocked By: Blocking:

Description

The placeholder attribute in the dojox.mobile.TextBox? widget is not going to the substitution of dojox.mobile.i18n like the other mobile widgets.

To fix it, we might change TextBox?.js from:

Map widget attributes to DOMNode attributes. _setPlaceHolderAttr: "textbox",

To:

_setPlaceHolderAttr: function(/*String*/value){

this.textbox.setAttribute("placeholder", this._cv ? this._cv(value) : value);

},

Change History (6)

comment:1 Changed 8 years ago by freemant2000

Sorry, "is not going to" should read "is not going through"

comment:2 Changed 8 years ago by bill

Summary: placeholeer in mobile TextBox not subject to mobile i18n substitutionplaceholder in mobile TextBox not subject to mobile i18n substitution
Last edited 8 years ago by bill (previous) (diff)

comment:3 Changed 8 years ago by ykami

Cc: Eric Durocher added
Owner: changed from ykami to Douglas Hays
Status: newassigned

Doug, I don't know if we should do this for something other than labels. Please decide.

comment:4 Changed 8 years ago by Douglas Hays

Milestone: tbd1.8

comment:5 Changed 8 years ago by Douglas Hays

Resolution: fixed
Status: assignedclosed

In [28573]:

Fixes #15354. Call _cv() on the provided placeHolder to translate.

comment:6 Changed 7 years ago by Douglas Hays

In [29828]:

Fixes #16154. Set widget placeHolder value as well as textbox attribute. Refs #15354.

Note: See TracTickets for help on using tickets.