Commit fd43d3e0 by mitalcoi

ajax removed

parent 49dd23e4
...@@ -155,14 +155,12 @@ yii.gii = (function ($) { ...@@ -155,14 +155,12 @@ yii.gii = (function ($) {
$('#generator-tablename').on('blur', function () { $('#generator-tablename').on('blur', function () {
var tableName = $(this).val(); var tableName = $(this).val();
if ($('#generator-modelclass').val()=='' && tableName && tableName !== '*'){ if ($('#generator-modelclass').val()=='' && tableName && tableName !== '*'){
$.ajax({ var modelClass='';
type: "GET", $.each(tableName.split('_'), function() {
url: "default/classify", if(this.length>0)
data: {tableName: tableName}, modelClass+=this.substring(0,1).toUpperCase()+this.substring(1);
success: function (modelName) {
$('#generator-modelclass').val(modelName);
}
}); });
$('#generator-modelclass').val(modelClass);
} }
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment