From 804fd2c5591d6f4907b322e360cc4a8d78ec9597 Mon Sep 17 00:00:00 2001 From: Guan Xiying Date: Thu, 5 Aug 2021 16:32:16 +0800 Subject: [PATCH] * Fix ajaxLoadPorducts to ajaxLoadProducts. --- module/job/js/create.js | 2 +- module/job/js/edit.js | 2 +- module/repo/control.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/module/job/js/create.js b/module/job/js/create.js index cc0301ae01..cbe8c58a18 100644 --- a/module/job/js/create.js +++ b/module/job/js/create.js @@ -8,7 +8,7 @@ $(document).ready(function() $('#repo').change(function() { var repoID = $(this).val(); - var link = createLink('repo', 'ajaxLoadPorducts', 'repoID=' + repoID); + var link = createLink('repo', 'ajaxLoadProducts', 'repoID=' + repoID); $.get(link, function(data) { if(data) diff --git a/module/job/js/edit.js b/module/job/js/edit.js index 1f90a1c89c..721752208f 100644 --- a/module/job/js/edit.js +++ b/module/job/js/edit.js @@ -3,7 +3,7 @@ $(document).ready(function() $('#repo').change(function() { var repoID = $(this).val(); - var link = createLink('repo', 'ajaxLoadPorducts', 'repoID=' + repoID); + var link = createLink('repo', 'ajaxLoadProducts', 'repoID=' + repoID); $.get(link, function(data) { if(data) diff --git a/module/repo/control.php b/module/repo/control.php index bd551f9de0..4d61974532 100644 --- a/module/repo/control.php +++ b/module/repo/control.php @@ -1164,7 +1164,7 @@ class repo extends control * @access public * @return void */ - public function ajaxLoadPorducts($repoID) + public function ajaxLoadProducts($repoID) { $productPairs = $this->repo->getProductsByRepo($repoID); echo html::select('product', array('') + $productPairs, key($productPairs), "class='form-control chosen'");