diff --git a/application/views/pages/services/services_page.php b/application/views/pages/services/services_page.php index 87026ff0..a6c0e8f5 100755 --- a/application/views/pages/services/services_page.php +++ b/application/views/pages/services/services_page.php @@ -10,7 +10,6 @@ -
- +
+
+
+
+ -
- - - -
-
-
- -
- - -
-
- - -
-
-
- - -

-
-
- -
-
-
- - -
- - -
- -

- - - - - -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- - -
- -
- -
-
+ + +

+
- - -
-
-
-
-
- - -
-
- - -
-
-
-
- -

-
+
+
+
+ + +
-
-
-
- - - -
- - -
- -

- - - - - -
- - -
- -
- - -
+
+ +

+ + + + + +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
diff --git a/assets/js/backend_services.js b/assets/js/backend_services.js index 7a811cde..f69f6b22 100644 --- a/assets/js/backend_services.js +++ b/assets/js/backend_services.js @@ -24,12 +24,11 @@ window.BackendServices = window.BackendServices || {}; /** * Contains the basic record methods for the page. * - * @type {ServicesHelper|CategoriesHelper} + * @type {ServicesHelper} */ var helper; var servicesHelper = new ServicesHelper(); - var categoriesHelper = new CategoriesHelper(); /** * Default initialize method of the page. @@ -48,8 +47,10 @@ window.BackendServices = window.BackendServices || {}; if (defaultEventHandlers) { bindEventHandlers(); } - - exports.updateAvailableCategories(); + + BackendServices.updateAvailableCategories(); + + Backend.placeFooterToBottom(); }; /** @@ -58,28 +59,7 @@ window.BackendServices = window.BackendServices || {}; * Do not use this method if you include the "BackendServices" namespace on another page. */ function bindEventHandlers() { - /** - * Event: Page Tab Button "Click" - * - * Changes the displayed tab. - */ - $('a[data-toggle="tab"]').on('shown.bs.tab', function () { - if (helper) { - helper.unbindEventHandlers(); - } - - if ($(this).attr('href') === '#services') { - helper = servicesHelper; - } else if ($(this).attr('href') === '#categories') { - helper = categoriesHelper; - } - - helper.resetForm(); - helper.filter(''); - helper.bindEventHandlers(); - $('.filter-key').val(''); - Backend.placeFooterToBottom(); - }); + // } /** @@ -88,7 +68,7 @@ window.BackendServices = window.BackendServices || {}; * Use this method every time a change is made to the service categories db table. */ exports.updateAvailableCategories = function () { - var url = GlobalVariables.baseUrl + '/index.php/backend_api/ajax_filter_service_categories'; + var url = GlobalVariables.baseUrl + '/index.php/service_categories/search'; var data = { csrfToken: GlobalVariables.csrfToken,