Add delete hotspot button to editor

Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
This commit is contained in:
2024-11-02 11:01:16 -07:00
parent 53b6b58c97
commit a3a9902070
3 changed files with 77 additions and 11 deletions

View File

@@ -85,9 +85,15 @@ class GlModelHooks {
'onclick' => 'readMetadata()'
);
$delButtonAttr = array(
'class' => 'preview-button DeleteHotspots',
'onclick' => 'readyDelHotspot()'
);
$addHsButton = array(
Html::rawElement('button',$addButtonAttr,'Add a new hotspot'),
Html::rawElement('button',$readButtonAttr,'Update hotspots')
Html::rawElement('button',$readButtonAttr,'Update hotspots'),
Html::rawElement('button',$delButtonAttr,'Delete hotspot')
);
$previewHTML = Html::rawElement('div',NULL,$previewViewer.implode($addHsButton));