Lines 128-134
function displaymoreoptions() {
Link Here
|
128 |
} |
128 |
} |
129 |
|
129 |
|
130 |
var X = 0, Y = 0, Z = 0; |
130 |
var X = 0, Y = 0, Z = 0; |
131 |
var numberingmethod = unescape(globalnumpatterndata.numberingmethod); |
131 |
var numberingmethod = globalnumpatterndata.numberingmethod; |
132 |
if(numberingmethod.match(/{X}/)) X = 1; |
132 |
if(numberingmethod.match(/{X}/)) X = 1; |
133 |
if(numberingmethod.match(/{Y}/)) Y = 1; |
133 |
if(numberingmethod.match(/{Y}/)) Y = 1; |
134 |
if(numberingmethod.match(/{Z}/)) Z = 1; |
134 |
if(numberingmethod.match(/{Z}/)) Z = 1; |
Lines 141-147
function displaymoreoptions() {
Link Here
|
141 |
|
141 |
|
142 |
if(X) { |
142 |
if(X) { |
143 |
if(globalnumpatterndata.label1) { |
143 |
if(globalnumpatterndata.label1) { |
144 |
$("#headerX").html(unescape(globalnumpatterndata.label1)); |
144 |
$("#headerX").html(globalnumpatterndata.label1); |
145 |
} else { |
145 |
} else { |
146 |
$("#headerX").html("X"); |
146 |
$("#headerX").html("X"); |
147 |
} |
147 |
} |
Lines 157-163
function displaymoreoptions() {
Link Here
|
157 |
} |
157 |
} |
158 |
if(Y) { |
158 |
if(Y) { |
159 |
if(globalnumpatterndata.label2) { |
159 |
if(globalnumpatterndata.label2) { |
160 |
$("#headerY").html(unescape(globalnumpatterndata.label2)); |
160 |
$("#headerY").html(globalnumpatterndata.label2); |
161 |
} else { |
161 |
} else { |
162 |
$("#headerY").html("Y"); |
162 |
$("#headerY").html("Y"); |
163 |
} |
163 |
} |
Lines 173-179
function displaymoreoptions() {
Link Here
|
173 |
} |
173 |
} |
174 |
if(Z) { |
174 |
if(Z) { |
175 |
if(globalnumpatterndata.label3) { |
175 |
if(globalnumpatterndata.label3) { |
176 |
$("#headerZ").html(unescape(globalnumpatterndata.label3)); |
176 |
$("#headerZ").html(globalnumpatterndata.label3); |
177 |
} else { |
177 |
} else { |
178 |
$("#headerZ").html("Z"); |
178 |
$("#headerZ").html("Z"); |
179 |
} |
179 |
} |
Lines 212-219
function modifyAdvancedPattern() {
Link Here
|
212 |
} |
212 |
} |
213 |
|
213 |
|
214 |
function restoreAdvancedPattern() { |
214 |
function restoreAdvancedPattern() { |
215 |
$("#patternname").attr("readonly", true).val(unescape(globalnumpatterndata.label)); |
215 |
$("#patternname").attr("readonly", true).val(globalnumpatterndata.label); |
216 |
$("#numberingmethod").attr("readonly", true).val(unescape(globalnumpatterndata.numberingmethod)); |
216 |
$("#numberingmethod").attr("readonly", true).val(globalnumpatterndata.numberingmethod); |
217 |
|
217 |
|
218 |
$("#advancedpredictionpatternt input").each(function() { |
218 |
$("#advancedpredictionpatternt input").each(function() { |
219 |
$(this).attr("readonly", true); |
219 |
$(this).attr("readonly", true); |
Lines 222-234
function restoreAdvancedPattern() {
Link Here
|
222 |
var tempid = id.replace(/(\d)/, "temp$1"); |
222 |
var tempid = id.replace(/(\d)/, "temp$1"); |
223 |
$(this).val($("#"+tempid).val()); |
223 |
$(this).val($("#"+tempid).val()); |
224 |
} else { |
224 |
} else { |
225 |
$(this).val(unescape(globalnumpatterndata[id])); |
225 |
$(this).val(globalnumpatterndata[id]); |
226 |
} |
226 |
} |
227 |
}); |
227 |
}); |
228 |
$("#advancedpredictionpatternt select").each(function() { |
228 |
$("#advancedpredictionpatternt select").each(function() { |
229 |
$(this).attr("disabled", true); |
229 |
$(this).attr("disabled", true); |
230 |
var id = $(this).attr('id'); |
230 |
var id = $(this).attr('id'); |
231 |
$(this).val(unescape(globalnumpatterndata[id])); |
231 |
$(this).val(globalnumpatterndata[id]); |
232 |
}); |
232 |
}); |
233 |
|
233 |
|
234 |
$("#restoreadvancedpatternbutton").hide(); |
234 |
$("#restoreadvancedpatternbutton").hide(); |