diff --git a/app/View/Elements/Events/View/row_object.ctp b/app/View/Elements/Events/View/row_object.ctp
index 9c2bb426e..5aabff3da 100644
--- a/app/View/Elements/Events/View/row_object.ctp
+++ b/app/View/Elements/Events/View/row_object.ctp
@@ -161,5 +161,5 @@
'child' => $attrKey == $lastElement ? 'last' : true
));
}
- echo '
|
';
+ echo ' |
';
}
diff --git a/app/View/Elements/ajaxTags.ctp b/app/View/Elements/ajaxTags.ctp
index c575cb37b..bdafaf6eb 100644
--- a/app/View/Elements/ajaxTags.ctp
+++ b/app/View/Elements/ajaxTags.ctp
@@ -107,24 +107,22 @@
$buttonData = array();
if ($full) {
$buttonData[] = sprintf(
- '',
+ '',
__('Add a tag'),
__('Add a tag'),
- 'addTagButton btn btn-inverse noPrint',
- 'line-height:10px; padding: 2px;',
- '/tags/selectTaxonomy/' . $id . ($scope === 'event') ? '' : ('/' . $scope),
- ' +'
+ 'addTagButton addButton btn btn-inverse noPrint',
+ $baseurl . '/tags/selectTaxonomy/' . $id . ($scope === 'event' ? '' : ('/' . $scope)),
+ ' '
);
}
if ($full || $fullLocal) {
$buttonData[] = sprintf(
- '',
+ '',
__('Add a local tag'),
__('Add a local tag'),
- 'addLocalTagButton btn btn-inverse noPrint',
- 'line-height:10px; padding: 2px;',
- '/tags/selectTaxonomy/local:1/' . $id . ($scope === 'event') ? '' : ('/' . $scope),
- ' +'
+ 'addLocalTagButton addButton btn btn-inverse noPrint',
+ $baseurl . '/tags/selectTaxonomy/local:1/' . $id . ($scope === 'event' ? '' : ('/' . $scope)),
+ ' '
);
}
if (!empty($buttonData)) {
diff --git a/app/View/Elements/eventattributetoolbar.ctp b/app/View/Elements/eventattributetoolbar.ctp
index aef7f1c2a..9476747d6 100644
--- a/app/View/Elements/eventattributetoolbar.ctp
+++ b/app/View/Elements/eventattributetoolbar.ctp
@@ -72,7 +72,7 @@
'class' => 'mass-select hidden',
'fa-icon' => 'tag',
'data' => [
- 'popover-popup' => '/tags/selectTaxonomy/selected/attribute',
+ 'popover-popup' => $baseurl . '/tags/selectTaxonomy/selected/attribute',
],
),
array(
@@ -82,7 +82,7 @@
'fa-icon' => 'rebel',
'fa-source' => 'fab',
'data' => [
- 'popover-popup' => '/galaxies/selectGalaxyNamespace/selected/attribute/eventid:' . $eventId,
+ 'popover-popup' => $baseurl . '/galaxies/selectGalaxyNamespace/selected/attribute/eventid:' . $eventId,
],
),
array(
diff --git a/app/View/Elements/galaxyQuickViewNew.ctp b/app/View/Elements/galaxyQuickViewNew.ctp
index 77134f53d..04b819de5 100755
--- a/app/View/Elements/galaxyQuickViewNew.ctp
+++ b/app/View/Elements/galaxyQuickViewNew.ctp
@@ -123,20 +123,20 @@ echo $this->Form->end();
%s',
- 'useCursorPointer btn btn-inverse',
+ 'useCursorPointer addButton btn btn-inverse',
$link,
' '
);
}
if ($editButtonsLocalEnabled) {
- $link = "/galaxies/selectGalaxyNamespace/" . h($target_id) . "/" . h($target_type) . "/local:1";
+ $link = "$baseurl/galaxies/selectGalaxyNamespace/" . h($target_id) . "/" . h($target_type) . "/local:1";
echo sprintf(
'',
- 'useCursorPointer btn btn-inverse',
+ 'useCursorPointer addButton btn btn-inverse',
$link,
' '
);
diff --git a/app/webroot/css/main.css b/app/webroot/css/main.css
index a1af5ea46..f45b2f006 100644
--- a/app/webroot/css/main.css
+++ b/app/webroot/css/main.css
@@ -2056,14 +2056,14 @@ a.discrete {
font-size: 12px;
}
-button.addGalaxy {
+button.addButton {
line-height: 10px;
padding: 2px;
margin-right: 5px;
margin-top: 1px;
}
-button.addGalaxy .fa-plus {
+button.addButton .fa-plus {
font-size: 11px;
line-height: 13px;
}
diff --git a/app/webroot/js/misp.js b/app/webroot/js/misp.js
index b7140adb8..5a55e0fb5 100644
--- a/app/webroot/js/misp.js
+++ b/app/webroot/js/misp.js
@@ -1802,6 +1802,7 @@ function getPopup(id, context, target, admin, popupType) {
}
// Same as getPopup function but create a popover to populate first
+// DEPRECATED
function popoverPopup(clicked, id, context, target, admin) {
var url = baseurl;
if (typeof admin !== 'undefined' && admin != '') url+= "/admin";
@@ -1810,20 +1811,24 @@ function popoverPopup(clicked, id, context, target, admin) {
}
if (target != '') url += "/" + target;
if (id != '') url += "/" + id;
- var popover = openPopover(clicked, undefined);
- $clicked = $(clicked);
+ popoverPopupNew(clicked, url);
+}
+
+function popoverPopupNew(clicked, url) {
+ var $clicked = $(clicked);
+ var popover = openPopover($clicked, undefined);
// actual request //
$.ajax({
- dataType:"html",
+ dataType: "html",
cache: false,
- success:function (data) {
+ success: function (data) {
if (popover.options.content !== data) {
- popover.options.content = data;
+ popover.options.content = data;
$clicked.popover('show');
}
},
- error:function(jqXHR ) {
+ error: function(jqXHR) {
var errorJSON = '';
try {
errorJSON = JSON.parse(jqXHR.responseText);
@@ -4770,7 +4775,7 @@ $(document.body).on('click', 'a.modal-open', function (e) {
$(document.body).on('click', '[data-popover-popup]', function (e) {
e.preventDefault();
var url = $(this).data('popover-popup');
- popoverPopup(this, url);
+ popoverPopupNew(this, url);
});
function queryEventLock(event_id, timestamp) {