]+(>|$)/g, '')
      };
      var truncate_string = function(str, chars) {
        if ($.trim(str).length <= chars) {
          return str;
        } else {
          return $.trim(str.substr(0, chars)) + 'â€¦';
        }
      };
      $('.databarang_ajax').selectator({
        labels: {
          search: 'Cari obat...'
        },
        load: function (search, callback) {
          if (search.length < this.minSearchLength) return callback();
          $.ajax({
            url: '{?=url()?}/{?=ADMIN?}/