mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-17 23:09:10 +08:00
fix to "You don't want to generate model class name if it is already entered."
This commit is contained in:
@@ -154,7 +154,7 @@ yii.gii = (function ($) {
|
|||||||
//model generator: translate table name to model class
|
//model generator: translate table name to model class
|
||||||
$('#generator-tablename').on('blur', function () {
|
$('#generator-tablename').on('blur', function () {
|
||||||
var tableName = $(this).val();
|
var tableName = $(this).val();
|
||||||
if (tableName && tableName !== '*'){
|
if ($('#generator-modelclass').val()=='' && tableName && tableName !== '*'){
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "default/classify",
|
url: "default/classify",
|
||||||
|
|||||||
Reference in New Issue
Block a user