fix to "You don't want to generate model class name if it is already entered."

This commit is contained in:
mitalcoi
2014-06-12 00:25:21 +04:00
parent 5fdef858ce
commit 49dd23e404

View File

@@ -154,7 +154,7 @@ yii.gii = (function ($) {
//model generator: translate table name to model class
$('#generator-tablename').on('blur', function () {
var tableName = $(this).val();
if (tableName && tableName !== '*'){
if ($('#generator-modelclass').val()=='' && tableName && tableName !== '*'){
$.ajax({
type: "GET",
url: "default/classify",