From 91f112dc3856221aca632a32955beda264a4db76 Mon Sep 17 00:00:00 2001 From: Zanz2 Date: Mon, 20 Aug 2018 13:45:43 +0200 Subject: [PATCH] Saving minor changes, deleted comments, stuck at drag n drop --- app/assets/javascripts/sitewide/popover_helper.js | 13 ++----------- app/views/canvas/_edit.html.erb | 6 +++--- 2 files changed, 5 insertions(+), 14 deletions(-) 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: '