Skip to content
Snippets Groups Projects
Commit f5c1e2d9 authored by PavelBegunkov's avatar PavelBegunkov
Browse files

...

parent c2457407
Branches
Tags
No related merge requests found
......@@ -25,7 +25,7 @@ $(function() {
function(data)
{
SubjectsGlobal = $.parseJSON(data);
console.log(SubjectsGlobal); // *
//console.log(SubjectsGlobal); // *
}
);
}
......@@ -51,7 +51,7 @@ $(function() {
}
}
SortSubjects.Count = j;
console.log(SortSubjects); // *
//console.log(SortSubjects); // *
return SortSubjects;
}
......@@ -94,7 +94,7 @@ $(function() {
$('.SelectSubject').change(function(){
$('.InputSubject').val($('.SelectSubject option:selected').text());
$('.InputSubject').val($(this).children('option:selected').first().text());
$(this).hide();
});
......@@ -109,9 +109,19 @@ $(function() {
}
});
if ($('div').is('.HiddenInputFacultyID'))
{
FacultyID = $('.HiddenInputFacultyID').val(); // Факультет, к которой привязана дисциплина
$('.HiddenInputFacultyID').remove(); // Тут даже Шерлок Холмс бессилен
var jTemp = $.closest('.HiddenInputFacultyID');
if (jTemp) {
FacultyID = jTemp.val(); // Факультет, к которой привязана дисциплина
jTemp.remove(); // Тут даже Шерлок Холмс бессилен
}
}
// if ($('div').is('.HiddenInputFacultyID'))
// {
// FacultyID = $('.HiddenInputFacultyID').val(); // Факультет, к которой привязана дисциплина
// $('.HiddenInputFacultyID').remove(); // Тут даже Шерлок Холмс бессилен
// }
})
\ No newline at end of file
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment