27 lines
795 B
JavaScript
27 lines
795 B
JavaScript
var KretaNumericHelper = (function () {
|
|
var kretaNumericHelper = function () {};
|
|
|
|
kretaNumericHelper.getKendoNumericTextBoxData = function (numericTextBoxId) {
|
|
var numericTextBox = $('#' + numericTextBoxId);
|
|
var numericTextBoxData = numericTextBox.data('kendoNumericTextBox');
|
|
return numericTextBoxData;
|
|
};
|
|
|
|
kretaNumericHelper.setValue = function (numericTextBoxId, value) {
|
|
var numericTextBoxData =
|
|
kretaNumericHelper.getKendoNumericTextBoxData(numericTextBoxId);
|
|
numericTextBoxData.value(value);
|
|
};
|
|
|
|
kretaNumericHelper.setTitle = function (e) {
|
|
var inputName = e.sender.element[0].id;
|
|
$('#' + inputName).attr(
|
|
'title',
|
|
$('#' + inputName)
|
|
.prev('input')
|
|
.attr('title')
|
|
);
|
|
};
|
|
|
|
return kretaNumericHelper;
|
|
})();
|