Changeset a2e62f
- Timestamp:
- Aug 25, 2018, 12:02:17 PM (4 years ago)
- Branches:
- ng_0.9
- Children:
- fab458
- Parents:
- 7fa986
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
content/vI_rdfDataTree.js
r7fa986 ra2e62f 254 254 }, 255 255 256 get _braille() { 257 var braille = false; 258 try { 259 braille = (vI.prefroot.getCharPref("accessibility.usebrailledisplay") || 260 vI.prefroot.getCharPref("accessibility.usetexttospeech")); 261 } catch (e) {}; 262 return braille; 256 get _texttospeach() { 257 return "true"; // can't get icons drawn in tree - changed behavior of treechildren::-moz-tree-cell 258 //return vI.prefroot.getCharPref("accessibility.usetexttospeech"); 263 259 }, 264 260 … … 268 264 this.getCellText = function (row, col) { 269 265 var retValue = table[row][col.id.substr(0, col.id.indexOf("_"))]; 270 if (!rdfDataTreeCollection._ braille&& (retValue == "no" || retValue == "yes"))266 if (!rdfDataTreeCollection._texttospeach && (retValue == "no" || retValue == "yes")) 271 267 return ""; // image will be used as indicator 272 268 else return retValue; -
modules/vI_identityDataExtras.js
r7fa986 ra2e62f 177 177 lastCompareResult: false, 178 178 179 get _texttospeach() { 180 return prefroot.getCharPref("accessibility.usetexttospeech"); 181 }, 182 179 183 get valueHtml() { 180 184 if (!this.value) 181 185 return ""; 182 return "<div class='bool" + ((this.value == "true") ? " checked" : "") + "'>" + 183 "<label class='screen'> </label>" + 184 "<label class='braille'>" + this.valueNice + "</label>" + 185 "</div>" 186 let boolclass = ((this.value == "true") ? " checked" : ""); 187 let accessclass = ((this._texttospeach == "true") ? " texttospeach" : " image"); 188 let value = ((this._texttospeach == "true") ? this.valueNice : " "); 189 return "<div class='bool" + boolclass + accessclass + "'>" + 190 "<label>" + value + "</label></div>" 186 191 }, 187 192 get valueNice() {
Note: See TracChangeset
for help on using the changeset viewer.