HEX
Server: Apache
System: Linux 4485441ca2e2 6.8.0-1039-aws #41~22.04.1-Ubuntu SMP Thu Sep 11 11:03:07 UTC 2025 aarch64
User: (1000)
PHP: 8.2.24
Disabled: NONE
Upload Files
File: /var/www/html/assets/js/angular/directives/customSelectbox.js
(function() {
  if (typeof App !== "undefined" && App !== null) {
    App.directive('customSelectbox', function() {
      return {
        restrict: 'A',
        link: function(scope, elem, attr) {
          var obj, set_selectbox;
          jQuery(elem).wrap('<div class="selectcustom"></div>').before('<div class="inner"><span></span><i class="fa fa-chevron-down"></i></div>');
          obj = jQuery('.inner', elem);
          set_selectbox = function() {
            var selected
            var value;
            selected = scope.$eval(attr.ngModel);
            if (jQuery(this).find('option:selected')[0]) {
              value = jQuery(this).find('option:selected').text();
            } else {
              value = jQuery(this).find('option:first-child').text();
            }
            return jQuery(this).siblings(obj).find('span').html(value);
          };
          jQuery(elem).each(set_selectbox).on('change', set_selectbox);
        }
      };
    });
  }

}).call(this);