|
|
@ -76,6 +76,11 @@ yii.gii = (function ($) { |
|
|
|
initPreviewDiffLinks(); |
|
|
|
initPreviewDiffLinks(); |
|
|
|
initConfirmationCheckboxes(); |
|
|
|
initConfirmationCheckboxes(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// model generator: hide class name input when table name input contains *
|
|
|
|
|
|
|
|
$('#model-generator #generator-tablename').on('change', function () { |
|
|
|
|
|
|
|
$('#model-generator .field-generator-modelclass').toggle($(this).val().indexOf('*') == -1); |
|
|
|
|
|
|
|
}).change(); |
|
|
|
|
|
|
|
|
|
|
|
// hide Generate button if any input is changed
|
|
|
|
// hide Generate button if any input is changed
|
|
|
|
$('.default-view .form-group input,select,textarea').change(function () { |
|
|
|
$('.default-view .form-group input,select,textarea').change(function () { |
|
|
|
$('.default-view-results,.default-view-files').hide(); |
|
|
|
$('.default-view-results,.default-view-files').hide(); |
|
|
|