Skip to content
Snippets Groups Projects
Commit efe4e236 authored by Andrew Rudenets's avatar Andrew Rudenets
Browse files

Значение URLdir из config.js теперь распространяется на все js-файлы.

parent 9aba510e
Branches
Tags
No related merge requests found
Showing
with 58 additions and 57 deletions
...@@ -36,6 +36,7 @@ ...@@ -36,6 +36,7 @@
{{ HTML.style('media/css/admin/macro.css')|raw }} {{ HTML.style('media/css/admin/macro.css')|raw }}
{{ HTML.style('media/css/actionButton.css')|raw }} {{ HTML.style('media/css/actionButton.css')|raw }}
{{ HTML.script('media/js/jquery-1.11.1.min.js')|raw }} {{ HTML.script('media/js/jquery-1.11.1.min.js')|raw }}
{{ HTML.script('media/js/config.js')|raw }}
{% block media %}{% endblock %} {% block media %}{% endblock %}
</head> </head>
<body> <body>
......
...@@ -25,7 +25,7 @@ $(function() ...@@ -25,7 +25,7 @@ $(function()
{ {
$('#departmentSelect').attr('disabled', 'disabled'); $('#departmentSelect').attr('disabled', 'disabled');
$("#departmentSelect").html('<option value="0">--- Кафедра ---</option>'); $("#departmentSelect").html('<option value="0">--- Кафедра ---</option>');
$.post('/~dev_rating/handler/admTeachers/getDepartmentsList', {'facultyID': $('#facultySelect option:selected').val()}, function(data){ $.post(URLdir + 'handler/admTeachers/getDepartmentsList', {'facultyID': $('#facultySelect option:selected').val()}, function(data){
$.each(data, function(i){ $.each(data, function(i){
$("#departmentSelect").append('<option value="'+data[i].ID+'">'+data[i].Name+'</option>'); $("#departmentSelect").append('<option value="'+data[i].ID+'">'+data[i].Name+'</option>');
}); });
...@@ -49,7 +49,7 @@ $(function() ...@@ -49,7 +49,7 @@ $(function()
$('body').on('click', '#downloadTeacherPDF', function(){ $('body').on('click', '#downloadTeacherPDF', function(){
$('#downloadTeacherPDF').attr('disabled', 'disabled'); $('#downloadTeacherPDF').attr('disabled', 'disabled');
$.fileDownload('/~dev_rating/handler/admAccounts/getActivationForTeachers', { $.fileDownload(URLdir + 'handler/admAccounts/getActivationForTeachers', {
httpMethod: "POST", httpMethod: "POST",
data: data:
{ {
...@@ -66,7 +66,7 @@ $(function() ...@@ -66,7 +66,7 @@ $(function()
$('body').on('click', '#downloadStudentPDF', function(e){ $('body').on('click', '#downloadStudentPDF', function(e){
$('#downloadStudentPDF').attr('disabled', 'disabled'); $('#downloadStudentPDF').attr('disabled', 'disabled');
$.fileDownload('/~dev_rating/handler/admAccounts/getActivationForStudents', { $.fileDownload(URLdir + 'handler/admAccounts/getActivationForStudents', {
httpMethod: "POST", httpMethod: "POST",
data: data:
{ {
......
...@@ -30,7 +30,7 @@ $(function() ...@@ -30,7 +30,7 @@ $(function()
$("#studyGroupSelect").html('<option value="0">--- Учебная группа ---</option>'); $("#studyGroupSelect").html('<option value="0">--- Учебная группа ---</option>');
if (($('#gradeSelect option:selected').val()!= '0')) { if (($('#gradeSelect option:selected').val()!= '0')) {
$.post('/~dev_rating/handler/admStudents/getStudyGroups', $.post(URLdir + 'handler/admStudents/getStudyGroups',
{ {
'facultyID': $('#facultySelect option:selected').val(), 'facultyID': $('#facultySelect option:selected').val(),
'gradeNum': $('#gradeSelect option:selected').val() 'gradeNum': $('#gradeSelect option:selected').val()
...@@ -59,7 +59,7 @@ $(function() ...@@ -59,7 +59,7 @@ $(function()
$('#inputGroupSubmit').click(function(){ $('#inputGroupSubmit').click(function(){
$('#inputGroupSubmit').attr('disabled', 'disabled'); $('#inputGroupSubmit').attr('disabled', 'disabled');
$.post('/~dev_rating/handler/admStudents/createStudent', $.post(URLdir + 'handler/admStudents/createStudent',
{ {
'firstName': $('#firstName').val(), 'firstName': $('#firstName').val(),
'secondName': $('#secondName').val(), 'secondName': $('#secondName').val(),
......
...@@ -19,12 +19,12 @@ $(function() ...@@ -19,12 +19,12 @@ $(function()
$('#facultySelect').change(function(){ $('#facultySelect').change(function(){
if (($('#facultySelect option:selected').val()!= '0')) { if (($('#facultySelect option:selected').val()!= '0')) {
$("#search_results").html('<div class="search_load"><img src="/~dev_rating/media/img/load.gif"/></div>'); $("#search_results").html('<div class="search_load"><img src="' + URLdir + 'media/img/load.gif"/></div>');
$('#gradeSelect').removeAttr('disabled'); $('#gradeSelect').removeAttr('disabled');
$('#studyGroupSelect').attr('disabled', 'disabled'); $('#studyGroupSelect').attr('disabled', 'disabled');
$("#studyGroupSelect").html('<option value="0">--- Учебная группа ---</option>'); $("#studyGroupSelect").html('<option value="0">--- Учебная группа ---</option>');
$.post('/~dev_rating/handler/admStudents/getStudentsByFaculty', $.post(URLdir + 'handler/admStudents/getStudentsByFaculty',
{ {
'facultyID': $('#facultySelect option:selected').val() 'facultyID': $('#facultySelect option:selected').val()
}, },
...@@ -46,7 +46,7 @@ $(function() ...@@ -46,7 +46,7 @@ $(function()
$("#studyGroupSelect").html('<option value="0">--- Учебная группа ---</option>'); $("#studyGroupSelect").html('<option value="0">--- Учебная группа ---</option>');
if (($('#gradeSelect option:selected').val()!= '0')) { if (($('#gradeSelect option:selected').val()!= '0')) {
$.post('/~dev_rating/handler/admStudents/getStudyGroups', $.post(URLdir + 'handler/admStudents/getStudyGroups',
{ {
'facultyID': $('#facultySelect option:selected').val(), 'facultyID': $('#facultySelect option:selected').val(),
'gradeNum': $('#gradeSelect option:selected').val() 'gradeNum': $('#gradeSelect option:selected').val()
...@@ -68,9 +68,9 @@ $(function() ...@@ -68,9 +68,9 @@ $(function()
// Выбор группы // Выбор группы
$('#studyGroupSelect').change(function(){ $('#studyGroupSelect').change(function(){
$("#search_results").html('<div class="search_load"><img src="/~dev_rating/media/img/load.gif"/></div>'); $("#search_results").html('<div class="search_load"><img src="' + URLdir + 'media/img/load.gif"/></div>');
if (($('#studyGroupSelect option:selected').val()!= '0')) { if (($('#studyGroupSelect option:selected').val()!= '0')) {
$.post('/~dev_rating/handler/admStudents/getStudentsByStudyGroup', $.post(URLdir + 'handler/admStudents/getStudentsByStudyGroup',
{ {
'studyGroupID': $('#studyGroupSelect option:selected').val() 'studyGroupID': $('#studyGroupSelect option:selected').val()
}, },
......
...@@ -10,7 +10,7 @@ $(function() ...@@ -10,7 +10,7 @@ $(function()
if (($('#facultySelect option:selected').val()!= '0')) { if (($('#facultySelect option:selected').val()!= '0')) {
$("#departmentSelect").html('<option value="0">--- Кафедра ---</option>'); $("#departmentSelect").html('<option value="0">--- Кафедра ---</option>');
$('#departmentSelect').attr('disabled', 'disabled'); $('#departmentSelect').attr('disabled', 'disabled');
$.post('/~dev_rating/handler/admTeachers/getDepartmentsList', {'facultyID': $('#facultySelect option:selected').val()}, function(data){ $.post(URLdir + 'handler/admTeachers/getDepartmentsList', {'facultyID': $('#facultySelect option:selected').val()}, function(data){
$.each(data, function(i){ $.each(data, function(i){
$("#departmentSelect").append('<option value="'+data[i].ID+'">'+data[i].Name+'</option>'); $("#departmentSelect").append('<option value="'+data[i].ID+'">'+data[i].Name+'</option>');
}); });
...@@ -31,7 +31,7 @@ $(function() ...@@ -31,7 +31,7 @@ $(function()
$('#inputGroupSubmit').click(function(){ $('#inputGroupSubmit').click(function(){
$('#inputGroupSubmit').attr('disabled', 'disabled'); $('#inputGroupSubmit').attr('disabled', 'disabled');
$.post('/~dev_rating/handler/admTeachers/createTeacher', $.post(URLdir + 'handler/admTeachers/createTeacher',
{ {
'firstName': $('#firstName').val(), 'firstName': $('#firstName').val(),
'secondName': $('#secondName').val(), 'secondName': $('#secondName').val(),
......
...@@ -16,13 +16,13 @@ $(function() ...@@ -16,13 +16,13 @@ $(function()
$('#facultySelect').change(function(){ $('#facultySelect').change(function(){
if (($('#facultySelect option:selected').val()!= '0')) { if (($('#facultySelect option:selected').val()!= '0')) {
$("#search_results").html('<div class="search_load"><img src="/~dev_rating/media/img/load.gif"/></div>'); $("#search_results").html('<div class="search_load"><img src="' + URLdir + 'media/img/load.gif"/></div>');
$("#departmentSelect").html('<option value="0">--- Кафедра ---</option>'); $("#departmentSelect").html('<option value="0">--- Кафедра ---</option>');
$('#departmentSelect').attr('disabled', 'disabled'); $('#departmentSelect').attr('disabled', 'disabled');
$.post('/~dev_rating/handler/admTeachers/getTeachersList', {'facultyID': $('#facultySelect option:selected').val(), 'departmentID': '0'}, function(data){ $.post(URLdir + 'handler/admTeachers/getTeachersList', {'facultyID': $('#facultySelect option:selected').val(), 'departmentID': '0'}, function(data){
$("#search_results").html(data); $("#search_results").html(data);
}); });
$.post('/~dev_rating/handler/admTeachers/getDepartmentsList', {'facultyID': $('#facultySelect option:selected').val()}, function(data){ $.post(URLdir + 'handler/admTeachers/getDepartmentsList', {'facultyID': $('#facultySelect option:selected').val()}, function(data){
$.each(data, function(i){ $.each(data, function(i){
$("#departmentSelect").append('<option value="'+data[i].ID+'">'+data[i].Name+'</option>'); $("#departmentSelect").append('<option value="'+data[i].ID+'">'+data[i].Name+'</option>');
}); });
...@@ -37,9 +37,9 @@ $(function() ...@@ -37,9 +37,9 @@ $(function()
// Выбор кафедры // Выбор кафедры
$('#departmentSelect').change(function(){ $('#departmentSelect').change(function(){
$("#search_results").html('<div class="search_load"><img src="/~dev_rating/media/img/load.gif"/></div>'); $("#search_results").html('<div class="search_load"><img src="' + URLdir + 'media/img/load.gif"/></div>');
if (($('#departmentSelect option:selected').val()!= '0')) { if (($('#departmentSelect option:selected').val()!= '0')) {
$.post('/~dev_rating/handler/admTeachers/getTeachersList', {'facultyID': '0', 'departmentID': $('#departmentSelect option:selected').val()}, function(data){ $.post(URLdir + 'handler/admTeachers/getTeachersList', {'facultyID': '0', 'departmentID': $('#departmentSelect option:selected').val()}, function(data){
$("#search_results").html(data); $("#search_results").html(data);
}); });
} }
......
var URLdir = '/~dev_rating'; var URLdir = '/~dev_rating/';
\ No newline at end of file \ No newline at end of file
...@@ -4,7 +4,7 @@ $(function() { ...@@ -4,7 +4,7 @@ $(function() {
// Изменения базовых параметров дисциплины // Изменения базовых параметров дисциплины
$(".AddDiscipline").click(function(){ $(".AddDiscipline").click(function(){
$.post( $.post(
URLdir + '/handler/map/AddDiscipline', URLdir + 'handler/map/AddDiscipline',
{ {
'Grade': $('.SelectGrade').val(), 'Grade': $('.SelectGrade').val(),
'SubjectID': $('.SelectSubject').val(), 'SubjectID': $('.SelectSubject').val(),
......
...@@ -66,7 +66,7 @@ $(function() { ...@@ -66,7 +66,7 @@ $(function() {
// Изменение типа подмодуля // Изменение типа подмодуля
function ChangeSubmoduleControlType(ID, ControlType){ function ChangeSubmoduleControlType(ID, ControlType){
$.post( $.post(
URLdir + '/handler/map/ChangeSubmoduleControlType', URLdir + 'handler/map/ChangeSubmoduleControlType',
{ {
'SubmoduleID': ID, 'SubmoduleID': ID,
'ControlType': ControlType 'ControlType': ControlType
...@@ -83,7 +83,7 @@ $(function() { ...@@ -83,7 +83,7 @@ $(function() {
// Изменение макс. балла подмодуля // Изменение макс. балла подмодуля
function ChangeSubmoduleMaxRate(ID, NewMaxRate) { function ChangeSubmoduleMaxRate(ID, NewMaxRate) {
$.post( $.post(
URLdir + '/handler/map/ChangeSubmoduleMaxRate', URLdir + 'handler/map/ChangeSubmoduleMaxRate',
{ {
'SubmoduleID': ID, 'SubmoduleID': ID,
'MaxRate': NewMaxRate 'MaxRate': NewMaxRate
...@@ -160,7 +160,7 @@ $(function() { ...@@ -160,7 +160,7 @@ $(function() {
// Поменять местами два модуля // Поменять местами два модуля
function SwapModuleOrder(ModuleID1, ModuleID2) { function SwapModuleOrder(ModuleID1, ModuleID2) {
$.post( $.post(
URLdir + '/handler/map/SwapModuleOrder', URLdir + 'handler/map/SwapModuleOrder',
{ {
'ModuleID1': ModuleID1, 'ModuleID1': ModuleID1,
'ModuleID2': ModuleID2 'ModuleID2': ModuleID2
...@@ -177,7 +177,7 @@ $(function() { ...@@ -177,7 +177,7 @@ $(function() {
// Поменять местами два мероприятия // Поменять местами два мероприятия
function SwapSubmoduleOrder(SubmoduleID1, SubmoduleID2) { function SwapSubmoduleOrder(SubmoduleID1, SubmoduleID2) {
$.post( $.post(
URLdir + '/handler/map/SwapSubmoduleOrder', URLdir + 'handler/map/SwapSubmoduleOrder',
{ {
'SubmoduleID1': SubmoduleID1, 'SubmoduleID1': SubmoduleID1,
'SubmoduleID2': SubmoduleID2 'SubmoduleID2': SubmoduleID2
...@@ -198,7 +198,7 @@ $(function() { ...@@ -198,7 +198,7 @@ $(function() {
// Изменение предмета // Изменение предмета
$('.SelectSubject').change(function(){ $('.SelectSubject').change(function(){
$.post( $.post(
URLdir + '/handler/map/ChangeDisciplineSubject', URLdir + 'handler/map/ChangeDisciplineSubject',
{ {
'DisciplineID': DisciplineID, 'DisciplineID': DisciplineID,
'SubjectID': $('.SelectSubject').val() 'SubjectID': $('.SelectSubject').val()
...@@ -215,7 +215,7 @@ $(function() { ...@@ -215,7 +215,7 @@ $(function() {
// Изменение курса // Изменение курса
$('.SelectDisGrade').change(function(){ // SelectGrade совпадает с другим, поэтому SelectDisGrade $('.SelectDisGrade').change(function(){ // SelectGrade совпадает с другим, поэтому SelectDisGrade
$.post( $.post(
URLdir + '/handler/map/ChangeDisciplineGrade', URLdir + 'handler/map/ChangeDisciplineGrade',
{ {
'DisciplineID': DisciplineID, 'DisciplineID': DisciplineID,
'GradeID': $('.SelectDisGrade').val() 'GradeID': $('.SelectDisGrade').val()
...@@ -232,7 +232,7 @@ $(function() { ...@@ -232,7 +232,7 @@ $(function() {
// Изменение контроля // Изменение контроля
$('.ExamType').change(function(){ $('.ExamType').change(function(){
$.post( $.post(
URLdir + '/handler/map/ChangeDisciplineControl', URLdir + 'handler/map/ChangeDisciplineControl',
{ {
'DisciplineID': DisciplineID, 'DisciplineID': DisciplineID,
'Control': $('input:radio[name=ExamType]:checked').val() 'Control': $('input:radio[name=ExamType]:checked').val()
...@@ -249,7 +249,7 @@ $(function() { ...@@ -249,7 +249,7 @@ $(function() {
// Изменение лекционных часов // Изменение лекционных часов
$('.InputLectionCount').focusout(function(){ $('.InputLectionCount').focusout(function(){
$.post( $.post(
URLdir + '/handler/map/ChangeDisciplineHours', URLdir + 'handler/map/ChangeDisciplineHours',
{ {
'DisciplineID': DisciplineID, 'DisciplineID': DisciplineID,
'Hours': $('.InputLectionCount').val(), 'Hours': $('.InputLectionCount').val(),
...@@ -267,7 +267,7 @@ $(function() { ...@@ -267,7 +267,7 @@ $(function() {
// Изменение практических часов // Изменение практических часов
$('.InputPracticeCount').focusout(function(){ $('.InputPracticeCount').focusout(function(){
$.post( $.post(
URLdir + '/handler/map/ChangeDisciplineHours', URLdir + 'handler/map/ChangeDisciplineHours',
{ {
'DisciplineID': DisciplineID, 'DisciplineID': DisciplineID,
'Hours': $('.InputPracticeCount').val(), 'Hours': $('.InputPracticeCount').val(),
...@@ -364,7 +364,7 @@ $(function() { ...@@ -364,7 +364,7 @@ $(function() {
$('.addModule').click(function(){ $('.addModule').click(function(){
var OrderNum = $('.moduleGroup', '.moduleList').last().index('.moduleGroup') + 2; var OrderNum = $('.moduleGroup', '.moduleList').last().index('.moduleGroup') + 2;
$.post( $.post(
URLdir + '/handler/map/AddModule', URLdir + 'handler/map/AddModule',
{ {
'DisciplineID': DisciplineID, 'DisciplineID': DisciplineID,
// 'OrderNum': OrderNum // 'OrderNum': OrderNum
...@@ -422,7 +422,7 @@ $(function() { ...@@ -422,7 +422,7 @@ $(function() {
var SubmodulesDIV = $(this).siblings('.subModules'); var SubmodulesDIV = $(this).siblings('.subModules');
var OrderNum = SubmodulesDIV.children('.subModule').last().index() + 2; var OrderNum = SubmodulesDIV.children('.subModule').last().index() + 2;
$.post( $.post(
URLdir + '/handler/map/AddSubmodule', URLdir + 'handler/map/AddSubmodule',
{ {
'ModuleID': ModuleID 'ModuleID': ModuleID
//'OrderNum': OrderNum //'OrderNum': OrderNum
...@@ -465,7 +465,7 @@ $(function() { ...@@ -465,7 +465,7 @@ $(function() {
var ChangeOrderModulesID = '[' + AttrID.get() + ']'; var ChangeOrderModulesID = '[' + AttrID.get() + ']';
// //
$.post( $.post(
URLdir + '/handler/map/DeleteModule', URLdir + 'handler/map/DeleteModule',
{ {
'ModuleID': $(this).parent('div').parent('div').parent('div').attr('id'), 'ModuleID': $(this).parent('div').parent('div').parent('div').attr('id'),
'SubmodulesID': JSONSubmodules, 'SubmodulesID': JSONSubmodules,
...@@ -503,7 +503,7 @@ $(function() { ...@@ -503,7 +503,7 @@ $(function() {
var ChangeOrderSubmodulesID = '[' + AttrID.get() + ']'; var ChangeOrderSubmodulesID = '[' + AttrID.get() + ']';
// //
$.post( $.post(
URLdir + '/handler/map/DeleteSubmodule', URLdir + 'handler/map/DeleteSubmodule',
{ {
'SubmoduleID': $(this).parent('div').parent('div').attr('id'), 'SubmoduleID': $(this).parent('div').parent('div').attr('id'),
'CurrentSubmoduleOrder': CurrentSubmoduleOrder, 'CurrentSubmoduleOrder': CurrentSubmoduleOrder,
...@@ -536,7 +536,7 @@ $(function() { ...@@ -536,7 +536,7 @@ $(function() {
if (NewModuleName != '' && ModuleName != NewModuleName) { if (NewModuleName != '' && ModuleName != NewModuleName) {
var ID = $(this).parent('div').parent('div').parent('div').attr('id'); var ID = $(this).parent('div').parent('div').parent('div').attr('id');
$.post( $.post(
URLdir + '/handler/map/ChangeModuleName', URLdir + 'handler/map/ChangeModuleName',
{ {
'ModuleID': ID, 'ModuleID': ID,
'ModuleName': NewModuleName 'ModuleName': NewModuleName
...@@ -566,7 +566,7 @@ $(function() { ...@@ -566,7 +566,7 @@ $(function() {
if (NewSubmoduleName != '' && SubmoduleName != NewSubmoduleName) { if (NewSubmoduleName != '' && SubmoduleName != NewSubmoduleName) {
var ID = $(this).parent('div').parent('div').attr('id'); var ID = $(this).parent('div').parent('div').attr('id');
$.post( $.post(
URLdir + '/handler/map/ChangeSubmoduleName', URLdir + 'handler/map/ChangeSubmoduleName',
{ {
'SubmoduleID': ID, 'SubmoduleID': ID,
'SubmoduleName': NewSubmoduleName 'SubmoduleName': NewSubmoduleName
...@@ -631,7 +631,7 @@ $('.AttachGroupButton').click(function(){ ...@@ -631,7 +631,7 @@ $('.AttachGroupButton').click(function(){
var StudyGroupID = $('.SelectStudyGroup').val(); var StudyGroupID = $('.SelectStudyGroup').val();
var StudyGroupName = $(".SelectStudyGroup option:selected").text(); var StudyGroupName = $(".SelectStudyGroup option:selected").text();
$.post( $.post(
URLdir + '/handler/map/BindGroup', URLdir + 'handler/map/BindGroup',
{ {
'StudyGroupID': StudyGroupID, 'StudyGroupID': StudyGroupID,
'DisciplineID': DisciplineID 'DisciplineID': DisciplineID
...@@ -652,7 +652,7 @@ $('.AttachedGroupsList').on('click', '.UnbindGroup', function(){ ...@@ -652,7 +652,7 @@ $('.AttachedGroupsList').on('click', '.UnbindGroup', function(){
var StudyGroupID = $(this).parent().attr('id'); var StudyGroupID = $(this).parent().attr('id');
var GroupDIV = $(this).parent(); var GroupDIV = $(this).parent();
$.post( $.post(
URLdir + '/handler/map/UnbindGroup', URLdir + 'handler/map/UnbindGroup',
{ {
'StudyGroupID': StudyGroupID, 'StudyGroupID': StudyGroupID,
'DisciplineID': DisciplineID 'DisciplineID': DisciplineID
...@@ -711,7 +711,7 @@ function CallSearchStudents() { ...@@ -711,7 +711,7 @@ function CallSearchStudents() {
if ($('.InputStudentName ').val() > 0) if ($('.InputStudentName ').val() > 0)
Name = ($('.InputStudentName ').val()).split(' '); Name = ($('.InputStudentName ').val()).split(' ');
$.post( $.post(
URLdir + '/handler/map/SearchStudents', URLdir + 'handler/map/SearchStudents',
{ {
'GradeID': $('.SelectGrade').val(), 'GradeID': $('.SelectGrade').val(),
'GroupN': $('.SelectStudyGroup').val(), 'GroupN': $('.SelectStudyGroup').val(),
...@@ -740,7 +740,7 @@ function CallSearchStudents() { ...@@ -740,7 +740,7 @@ function CallSearchStudents() {
$('.SelectGrade').change(function(){ $('.SelectGrade').change(function(){
$.post( $.post(
URLdir + '/handler/map/GetStudyGroups', URLdir + 'handler/map/GetStudyGroups',
{ {
'FacultyID': FacultyID, 'FacultyID': FacultyID,
'GradeID': $('.SelectGrade').val() 'GradeID': $('.SelectGrade').val()
...@@ -816,7 +816,7 @@ $('.StudentsList').on('click', '.Action_BindStudent', function(){ ...@@ -816,7 +816,7 @@ $('.StudentsList').on('click', '.Action_BindStudent', function(){
var thisObj = $(this); var thisObj = $(this);
var ID = $(this).parent().attr('id'); var ID = $(this).parent().attr('id');
$.post( $.post(
URLdir + '/handler/map/BindStudent', URLdir + 'handler/map/BindStudent',
{ {
'StudentID': ID, 'StudentID': ID,
'DisciplineID': DisciplineID 'DisciplineID': DisciplineID
...@@ -837,7 +837,7 @@ $('.StudentsList').on('click', '.Action_BindStudentFromSearch', function(){ ...@@ -837,7 +837,7 @@ $('.StudentsList').on('click', '.Action_BindStudentFromSearch', function(){
var thisObj = $(this); var thisObj = $(this);
var ID = $(this).parent().attr('id'); var ID = $(this).parent().attr('id');
$.post( $.post(
URLdir + '/handler/map/BindStudent', URLdir + 'handler/map/BindStudent',
{ {
'StudentID': ID, 'StudentID': ID,
'DisciplineID': DisciplineID 'DisciplineID': DisciplineID
...@@ -865,7 +865,7 @@ $('.StudentsList').on('click', '.Action_UnbindStudent', function(){ ...@@ -865,7 +865,7 @@ $('.StudentsList').on('click', '.Action_UnbindStudent', function(){
.addClass('StatusUnbind'); .addClass('StatusUnbind');
var ID = $(this).parent().attr('id'); var ID = $(this).parent().attr('id');
$.post( $.post(
URLdir + '/handler/map/UnbindStudent', URLdir + 'handler/map/UnbindStudent',
{ {
'StudentID': ID, 'StudentID': ID,
'DisciplineID': DisciplineID 'DisciplineID': DisciplineID
...@@ -910,7 +910,7 @@ function CallSearchTeachers(){ ...@@ -910,7 +910,7 @@ function CallSearchTeachers(){
var Name = []; var Name = [];
Name = ($('.InputTeacherName ').val()).split(' '); Name = ($('.InputTeacherName ').val()).split(' ');
$.post( $.post(
URLdir + '/handler/map/SearchTeachers', URLdir + 'handler/map/SearchTeachers',
{ {
'FacultyID': $('.SelectFaculty').val(), 'FacultyID': $('.SelectFaculty').val(),
'DepartmentID': $('.SelectDepartment').val(), 'DepartmentID': $('.SelectDepartment').val(),
...@@ -938,7 +938,7 @@ function CallSearchTeachers(){ ...@@ -938,7 +938,7 @@ function CallSearchTeachers(){
// Выборка кафедр // Выборка кафедр
$('.SelectFaculty').change(function(){ $('.SelectFaculty').change(function(){
$.post( $.post(
URLdir + '/handler/map/GetDepartments', URLdir + 'handler/map/GetDepartments',
{ {
'FacultyID': $('.SelectFaculty').val() 'FacultyID': $('.SelectFaculty').val()
}, },
...@@ -987,7 +987,7 @@ $('.TeachersList').on('click', '.Action_UnbindTeacher', function(){ ...@@ -987,7 +987,7 @@ $('.TeachersList').on('click', '.Action_UnbindTeacher', function(){
.remove(); .remove();
var ID = $(this).parent().attr('id'); var ID = $(this).parent().attr('id');
$.post( $.post(
URLdir + '/handler/map/UnbindTeacher', URLdir + 'handler/map/UnbindTeacher',
{ {
'BindingTeacher': ID, 'BindingTeacher': ID,
'DisciplineID': DisciplineID 'DisciplineID': DisciplineID
...@@ -1009,7 +1009,7 @@ $('.TeachersList').on('click', '.Action_BindTeacher', function(){ ...@@ -1009,7 +1009,7 @@ $('.TeachersList').on('click', '.Action_BindTeacher', function(){
var ID = $(this).parent().attr('id'); var ID = $(this).parent().attr('id');
var Name = $(this).siblings('.Name').text(); var Name = $(this).siblings('.Name').text();
$.post( $.post(
URLdir + '/handler/map/BindTeacher', URLdir + 'handler/map/BindTeacher',
{ {
'BindingTeacher': ID, 'BindingTeacher': ID,
'DisciplineID': DisciplineID 'DisciplineID': DisciplineID
......
...@@ -8,7 +8,7 @@ $(function() { ...@@ -8,7 +8,7 @@ $(function() {
if (parseInt($('.SelectFaculty option:selected').val()) > 0) if (parseInt($('.SelectFaculty option:selected').val()) > 0)
var Faculty = $('.SelectFaculty option:selected').val(); var Faculty = $('.SelectFaculty option:selected').val();
$.post( $.post(
URLdir + '/handler/map/GetSubjectsList', URLdir + 'handler/map/GetSubjectsList',
{ {
'FacultyID': Faculty 'FacultyID': Faculty
}, },
......
...@@ -18,7 +18,7 @@ $(document).ready(function() { ...@@ -18,7 +18,7 @@ $(document).ready(function() {
$.ajax({ $.ajax({
type: "POST", type: "POST",
url: "/~dev_rating/~dev_rating/handler/baseDialog/returnDialogHtml", //////////// ------------------------- Костыль url: URLdir + "handler/baseDialog/returnDialogHtml", //////////// ------------------------- Костыль
data: {}, data: {},
success: function(html){ success: function(html){
data = html; data = html;
...@@ -29,7 +29,7 @@ $(document).ready(function() { ...@@ -29,7 +29,7 @@ $(document).ready(function() {
if(!checkMessages) if(!checkMessages)
{ {
$.getJSON("/~dev_rating/~dev_rating/handler/errMessages/getRequests", {}, function(data){ //----------------------- Костыль $.getJSON(URLdir + "handler/errMessages/getRequests", {}, function(data){ //----------------------- Костыль
// var date = data['Date']; // var date = data['Date'];
// var text = data['Description']; // var text = data['Description'];
...@@ -70,7 +70,7 @@ $(document).ready(function() { ...@@ -70,7 +70,7 @@ $(document).ready(function() {
$.ajax({ $.ajax({
type: "POST", type: "POST",
url: "/~dev_rating/~dev_rating/handler/errMessages/createRequest", //----------------------- Костыль url: URLdir + "handler/errMessages/createRequest", //----------------------- Костыль
data: {title: mesTitle, text: mesText}, data: {title: mesTitle, text: mesText},
success: function(html){ success: function(html){
$('#errDialog').dialog("close"); $('#errDialog').dialog("close");
......
...@@ -9,7 +9,7 @@ $(function() ...@@ -9,7 +9,7 @@ $(function()
if (($('#facultySelect option:selected').val()!= '0')) { if (($('#facultySelect option:selected').val()!= '0')) {
$("#departmentSelect").html('<option value="0">--- Кафедра ---</option>'); $("#departmentSelect").html('<option value="0">--- Кафедра ---</option>');
$('#departmentSelect').attr('disabled', 'disabled'); $('#departmentSelect').attr('disabled', 'disabled');
$.post('/~dev_rating/handler/settings/getDepartmentsList', {'facultyID': $('#facultySelect option:selected').val()}, function(data){ $.post(URLdir + 'handler/settings/getDepartmentsList', {'facultyID': $('#facultySelect option:selected').val()}, function(data){
$.each(data, function(i){ $.each(data, function(i){
$("#departmentSelect").append('<option value="'+data[i].ID+'">'+data[i].Name+'</option>'); $("#departmentSelect").append('<option value="'+data[i].ID+'">'+data[i].Name+'</option>');
}); });
...@@ -30,7 +30,7 @@ $(function() ...@@ -30,7 +30,7 @@ $(function()
$('#inputGroupSubmit').click(function(){ $('#inputGroupSubmit').click(function(){
$('#inputGroupSubmit').attr('disabled', 'disabled'); $('#inputGroupSubmit').attr('disabled', 'disabled');
$.post('/~dev_rating/handler/settings/editProfile', $.post(URLdir + 'handler/settings/editProfile',
{ {
'firstName': $('#firstName').val(), 'firstName': $('#firstName').val(),
'secondName': $('#secondName').val(), 'secondName': $('#secondName').val(),
......
...@@ -47,7 +47,7 @@ $(function() { ...@@ -47,7 +47,7 @@ $(function() {
if (parseInt(NewRate) <= parseInt(MaxRate)) if (parseInt(NewRate) <= parseInt(MaxRate))
{ {
$.post( $.post(
URLdir + '/handler/rating/setRate', URLdir + 'handler/rating/setRate',
{ {
'student': StudentID, 'student': StudentID,
'submodule': SubmoduleID, 'submodule': SubmoduleID,
......
...@@ -25,7 +25,7 @@ $(function() { ...@@ -25,7 +25,7 @@ $(function() {
else checkInput['login'] = false; else checkInput['login'] = false;
if (checkInput['login'] == true) if (checkInput['login'] == true)
$.post('/~dev_rating/handler/settings/changeLogin', {'login': $('.inputLogin').val()}, $.post(URLdir + 'handler/settings/changeLogin', {'login': $('.inputLogin').val()},
function(data){ function(data){
data = $.parseJSON(data); data = $.parseJSON(data);
if(data.success === true) { if(data.success === true) {
...@@ -65,7 +65,7 @@ $(function() { ...@@ -65,7 +65,7 @@ $(function() {
checkInput['confirmPass'] = false; checkInput['confirmPass'] = false;
if (checkInput['confirmPass'] == true) if (checkInput['confirmPass'] == true)
$.post('/~dev_rating/handler/settings/changePassword', $.post(URLdir + 'handler/settings/changePassword',
{ {
'old_password': $('.inputCurrentPass').val(), 'old_password': $('.inputCurrentPass').val(),
'password': $('.inputNewPass').val(), 'password': $('.inputNewPass').val(),
......
...@@ -3,7 +3,7 @@ $(function() ...@@ -3,7 +3,7 @@ $(function()
$('#signin_b').click(function() $('#signin_b').click(function()
{ {
$.post('/~dev_rating/handler/sign/in', {'login': $('#login').val(), 'password': $('#password').val()}, $.post(URLdir + 'handler/sign/in', {'login': $('#login').val(), 'password': $('#password').val()},
function(data) function(data)
{ {
data = $.parseJSON(data); data = $.parseJSON(data);
...@@ -23,7 +23,7 @@ $(function() ...@@ -23,7 +23,7 @@ $(function()
$('#signup_b').click(function() $('#signup_b').click(function()
{ {
$.post('/~dev_rating/handler/sign/up', $.post(URLdir + 'handler/sign/up',
{'activation_code': $('#activation_code').val(), {'activation_code': $('#activation_code').val(),
'login': $('#login').val(), 'login': $('#login').val(),
'password': $('#password').val(), 'password': $('#password').val(),
......
$(function() { $(function() {
$('#openHelp').click(function() $('#openHelp').click(function()
{ {
$.get('/~dev_rating/handler/GetHelp/indexStudent', {}, $.get(URLdir + 'handler/GetHelp/indexStudent', {},
function(data) function(data)
{ {
wnd.open({title: "Цветовая схема", content: data, width: 700}); wnd.open({title: "Цветовая схема", content: data, width: 700});
......
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