init
This commit is contained in:
commit
e124a47765
19374 changed files with 9806149 additions and 0 deletions
|
@ -0,0 +1,90 @@
|
|||
@using Kreta.Web.Areas.Tanulo.Models
|
||||
@model TanuloModel
|
||||
|
||||
<script type="text/javascript">
|
||||
function tabOnSelect(e) {
|
||||
if ($(e.contentElement).attr("id") === "TanuloTabstrip-3") {
|
||||
var nevRokonsagFokaHiba = $('.kreta-validation-summary ul li label[for="NevRokonsagFoka"]');
|
||||
if (nevRokonsagFokaHiba.length > 0) {
|
||||
$('label[for="NevRokonsagFoka"]').addClass('labelError');
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@using (Html.KretaForm("TanuloForm", new Dictionary<string, object> { { "autocomplete", "new-password" } }))
|
||||
{
|
||||
<input type="text" style="display: none;" autocomplete="new-password" />
|
||||
<input type="password" style="display: none;" autocomplete="new-password" />
|
||||
@Html.KretaValidationSummary()
|
||||
|
||||
@Html.HiddenFor(x => x.TanuloId)
|
||||
@Html.HiddenFor(x => x.TanevId)
|
||||
@Html.HiddenFor(x => x.TanuloModalHeader)
|
||||
|
||||
@Html.KretaTabStripAjax("TanuloTabstrip", Model.TabList)
|
||||
}
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#TanuloBTMProblemakModel_BTMProblema').change(function () {
|
||||
if ($(this).is(":checked")) {
|
||||
$("#BTMHiddenInputsDiv").removeClass("displayNone");
|
||||
}
|
||||
else {
|
||||
$("#BTMHiddenInputsDiv").addClass("displayNone");
|
||||
}
|
||||
});
|
||||
|
||||
$('#TanuloBTMProblemakModel_TanulasiProblemavalKuzd').change(function () {
|
||||
if ($(this).is(":checked")) {
|
||||
$("#BTMHiddenTanulasiProblemaInputsDiv").removeClass("displayNone");
|
||||
}
|
||||
else {
|
||||
$("#BTMHiddenTanulasiProblemaInputsDiv").addClass("displayNone");
|
||||
}
|
||||
});
|
||||
|
||||
$('#TanuloSajatosAdatModel_SajatosNevelesu').change(function () {
|
||||
if ($(this).is(":checked")) {
|
||||
$("#SNIHiddenInputsDiv").removeClass("displayNone");
|
||||
}
|
||||
else {
|
||||
$("#SNIHiddenInputsDiv").addClass("displayNone");
|
||||
}
|
||||
});
|
||||
|
||||
$("#TanuloTabstrip li").click(function () {
|
||||
var tabId = $(this).attr('id');
|
||||
|
||||
if (tabId == "ModElerhetoseg") {
|
||||
KretaGridHelper.refreshGrid('ElerhetosegCimGrid');
|
||||
KretaGridHelper.refreshGrid('ElerhetosegTelGrid');
|
||||
KretaGridHelper.refreshGrid('ElerhetosegEmailGrid');
|
||||
}
|
||||
else if (tabId == "ModGondviselo") {
|
||||
KretaGridHelper.refreshGrid('GondviselokGrid');
|
||||
KretaGridHelper.refreshGrid('GondviselokCimGrid');
|
||||
}
|
||||
else if (tabId == "ModKozSzolg") {
|
||||
KretaGridHelper.refreshGrid('KozossegiSzolgalatGrid');
|
||||
}
|
||||
|
||||
//var array = $("#TanuloTabstrip-" + $(this).attr('id') + ' [data-role = "combobox"]');
|
||||
var tabDivId = $(this).attr('aria-controls');
|
||||
var array = $('#' + tabDivId + ' [data-role = "combobox"]');
|
||||
//$.each(array, function (key, value) { // AutoBind(False) esetén is mindenképp refreshelte a comboBox dataSource-okat... (de miért kellene?)
|
||||
// KretaComboBoxHelper.refreshComboBox($(value).attr('Id'));
|
||||
//});
|
||||
});
|
||||
|
||||
var array = $("#TanuloTabstrip-1 [data-role='combobox']");
|
||||
$.each(array, function (key, value) {
|
||||
KretaComboBoxHelper.refreshComboBox($(value).attr('Id'));
|
||||
});
|
||||
|
||||
$("#modTanuloWindow_wnd_title").text(
|
||||
$("#modTanuloWindow_wnd_title").text() +
|
||||
" [ " + $("#TanuloAlapAdatModel_CsaladiNev").val() + " " + $("#TanuloAlapAdatModel_UtoNev").val() + " - " + $("#TanuloAlapAdatModel_SzuletesiIdo").val() + " ]");
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue