Commit fd43d3e0 by mitalcoi

ajax removed

parent 49dd23e4
......@@ -155,14 +155,12 @@ yii.gii = (function ($) {
$('#generator-tablename').on('blur', function () {
var tableName = $(this).val();
if ($('#generator-modelclass').val()=='' && tableName && tableName !== '*'){
$.ajax({
type: "GET",
url: "default/classify",
data: {tableName: tableName},
success: function (modelName) {
$('#generator-modelclass').val(modelName);
}
var modelClass='';
$.each(tableName.split('_'), function() {
if(this.length>0)
modelClass+=this.substring(0,1).toUpperCase()+this.substring(1);
});
$('#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