You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
596 B
23 lines
596 B
define(['jquery', 'bootstrap', 'backend', 'form', 'table'], function ($, undefined, Backend, Form, Table) {
|
|
|
|
var Controller = {
|
|
index : function () {
|
|
$("input:radio[name='row[status]']").change(function (){
|
|
var auto=$("input:radio[name='row[status]']:checked").val();
|
|
if(auto == 1){
|
|
$('.auto').show();
|
|
}else{
|
|
$('.auto').hide();
|
|
}
|
|
|
|
}).trigger('change');
|
|
|
|
|
|
|
|
Form.api.bindevent($("form[role=form]"));
|
|
},
|
|
|
|
|
|
};
|
|
return Controller;
|
|
});
|