Merge branch 'master' of https://gitlab.zcorp.cc/easycorp/zentaopms
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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'");
|
||||
|
||||
Reference in New Issue
Block a user