Commit 27432ef4 authored by Vladimir Baranov's avatar Vladimir Baranov

rref #5385. Fix room timetables selection

parent 82a45efa
...@@ -616,13 +616,13 @@ angular.module('ulakbus.crud', ['schemaForm', 'ui.bootstrap', 'ulakbus.formServi ...@@ -616,13 +616,13 @@ angular.module('ulakbus.crud', ['schemaForm', 'ui.bootstrap', 'ulakbus.formServi
iScope.timetable = iScope.prepareTimetable(data.zaman_plani); iScope.timetable = iScope.prepareTimetable(data.zaman_plani);
}; };
iScope.selectTable = function(lecturer){ iScope.selectTable = function(table){
iScope.loadingTable = true; iScope.loadingTable = true;
iScope.get_wf({ iScope.get_wf({
cmd: 'personel_sec', cmd: 'derslik_degistir',
secili_og_elemani: {key: lecturer.key} secili_derslik: {key: table.key}
}).then(function(response){ }).then(function(response){
initLecturer(response); initTable(response);
}).finally(function(){ }).finally(function(){
iScope.loadingTable = false; iScope.loadingTable = false;
}) })
......
Markdown is supported
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