init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
27
KretaWeb/Scripts/KendoHelper/KretaNumericHelper.js
Normal file
27
KretaWeb/Scripts/KendoHelper/KretaNumericHelper.js
Normal file
|
@ -0,0 +1,27 @@
|
|||
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;
|
||||
})();
|
Loading…
Add table
Add a link
Reference in a new issue