diff --git a/app/assets/javascripts/sitewide/popover_helper.js b/app/assets/javascripts/sitewide/popover_helper.js index c7e2601d3..727f9355c 100644 --- a/app/assets/javascripts/sitewide/popover_helper.js +++ b/app/assets/javascripts/sitewide/popover_helper.js @@ -12,23 +12,13 @@ $('.popover_v2').each(function(i,obj) { var link = $(obj).data('popoverlink') var text_data = $(obj).data('popovercontent') - /* Testing - var needed_attribute = $(obj).attr("data-content"); - if (typeof needed_attribute !== typeof undefined && needed_attribute !== false && needed_attribute !== "") { - // Do nothing, will negate the above logic later - }else{ - $(obj).attr( "data-content","content" ) - // without a data-content attribute in its parent element, the popover will NEVER render - // it assumes it is empty because I fill data trough the template. - } - */ $(obj).popover({ html: true, container: 'body', placement: 'auto right', trigger: 'manual', - content: 'should never be empty', + content: 'popovers will not display if empty', template: '