about_screen.js 577 B

12345678910111213141516171819202122232425
  1. define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefined, Backend, Table, Form) {
  2. var Controller = {
  3. index: function () {
  4. // 为表格绑定事件
  5. Controller.api.bindevent();
  6. },
  7. add: function () {
  8. Controller.api.bindevent();
  9. },
  10. edit: function () {
  11. Controller.api.bindevent();
  12. },
  13. api: {
  14. bindevent: function () {
  15. Form.api.bindevent($("form[role=form]"));
  16. }
  17. }
  18. };
  19. return Controller;
  20. });