lessonslotnew.js 458 B

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