$("#edit").iMenubutton({
method: 'openDialog',
extend: '#unitDg-toolbar',
iconCls: 'fa fa-pencil',
btnCls: 'topjui-btn-green',
grid: unitDg,
dialog: {
id: 'unitEditDialog',
width: 350,
height: 250,
href: _ctx + '/html/goods/unit/unit_add_content.php',
url: _ctx + '/html/goods/unit/unit_edit_content.php?id={id}',
buttonsGroup: [
{
text: '更新',
url: _ctx + '/html/goods/unit/unit_edit.php',
iconCls: 'fa fa-save',
handler: 'ajaxForm',
btnCls: 'topjui-btn-green'
}
]
}
});