* change moule to module.

This commit is contained in:
wangyidong
2019-04-23 15:37:38 +08:00
parent 70935c1874
commit b865fe4c37
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -1638,14 +1638,14 @@ class testcase extends control
$this->view->users = $this->loadModel('user')->getPairs('noletter');
$this->display();
}
/**
* Export case getModuleByStory
*
* @params int $storyID
* @return void
*/
public function ajaxGetStoryMoule($storyID)
public function ajaxGetStoryModule($storyID)
{
$story = $this->dao->select('module')->from(TABLE_STORY)->where('id')->eq($storyID)->fetch();
$moduleID = !empty($story) ? $story->module : 0;
+1 -1
View File
@@ -12,7 +12,7 @@ $(document).on('change', '.storyChange', function()
{
var storyID = $(this).val();
if(typeof(storyID) == 'undefined') storyID = 0;
var link = createLink('testcase', 'ajaxGetStoryMoule', 'storyID=' + storyID);
var link = createLink('testcase', 'ajaxGetStoryModule', 'storyID=' + storyID);
var id = $(this).attr('id');
var index = id.substring(5);
$.get(link, function(json)