MCPcopy Index your code
hub / github.com/webodf/ViewerJS / selectScaleOption

Function selectScaleOption

viewer.js:143–160  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

141 }
142
143 function selectScaleOption(value) {
144 // Retrieve the options from the zoom level <select> element
145 var options = scaleSelector.options,
146 option,
147 predefinedValueFound = false,
148 i;
149
150 for (i = 0; i < options.length; i += 1) {
151 option = options[i];
152 if (option.value !== value) {
153 option.selected = false;
154 continue;
155 }
156 option.selected = true;
157 predefinedValueFound = true;
158 }
159 return predefinedValueFound;
160 }
161
162 function getPages() {
163 return viewerPlugin.getPages();

Callers 2

parseScaleFunction · 0.85
initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected