cacti/include/js/jquery.multiselect.js
/**
    * Checks an option element for data-image-src
    * and adds that as an image tag within the widget option
    *
    * @param {Node} option to pull an image from
    * @param {Node} span to insert image tag into
    */
Checks an option element for data-image-src
and adds that as an image tag within the widget option

@param {Node} option to pull an image from
@param {Node} span to insert image tag into
Checks an option element for data - image - src and adds that as an image tag within the widget option @param { Node } option to pull an image from @param { Node } span to insert image tag into
function insertImage(option, span) {
    var optionImageSrc = option.getAttribute('data-image-src');
    if (optionImageSrc) {
      var img = document.createElement('img');
      img.setAttribute('src', optionImageSrc);
      span.insertBefore(img, span.firstChild);
    }
  }
function insertImage ( option , span ) { var optionImageSrc = option . getAttribute ( 'data-image-src' ) ; if ( optionImageSrc ) { var img = document . createElement ( 'img' ) ; img . setAttribute ( 'src' , optionImageSrc ) ; span . insertBefore ( img , span . firstChild ) ; } }
Checks an option element for data-image-src
 and adds that as an image tag within the widget option
Checks an option element for data - image - src and adds that as an image tag within the widget option