contact.js 534 B

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