Skip to content
Snippets Groups Projects
Commit 38a06408 authored by Роман Штейнберг's avatar Роман Штейнберг
Browse files

Merge branch 'hotfix/v2.1.5'

parents 770f78cb d6c6eef2
Branches
No related merge requests found
......@@ -250,7 +250,7 @@ $(document).ready(function () {
// Update module & submodule name
$modules.on('keydown', 'input.moduleName, input.submoduleName', e => Watcher(500, _ => updateUnitName(e)));
$modules.on('change input paste', 'input.moduleName, input.submoduleName', e => Watcher(500, _ => updateUnitName(e)));
function updateUnitName(e) {
let $input = $(e.target),
......
......@@ -90,7 +90,7 @@ class Model_Map extends Model
/** @return bool true, if err occurred */
public static function setSubmoduleName($teacherID, $submoduleID, $name) {
$sql = 'SELECT `ChangeSubmoduleName`(:teacher, :submodule, :name) AS `num`';
$sql = 'SELECT `ChangeSubmoduleName`(:teacher, :submodule, :name) AS `Num`';
return DB::query(Database::SELECT, $sql)
->parameters([
':teacher' => $teacherID,
......
......@@ -12,7 +12,7 @@
{{ HTML.style('static/css/common/tabs.css')|raw }}
{{ HTML.style('static/css/common/buttons.css')|raw }}
<script>
let g_disciplineID = {{ Discipline.ID }};
window.g_disciplineID = {{ Discipline.ID }};
</script>
{% block discipline_media %}
......
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