1
0
Fork 0
forked from 0x2620/oxjs

select multple annotations, option to pass confirm delete dialog

This commit is contained in:
j 2025-01-24 17:10:36 +05:30
commit 03eb3d4a56
4 changed files with 42 additions and 19 deletions

View file

@ -35,6 +35,7 @@ Ox.AnnotationFolder = function(options, self) {
var that = Ox.Element({}, self)
.defaults({
clickLink: null,
confirmDeleteDialog: null,
collapsed: false,
editable: false,
highlight: '',
@ -281,6 +282,7 @@ Ox.AnnotationFolder = function(options, self) {
}
self.$annotations = Ox.ArrayEditable(Ox.extend({
clickLink: self.options.clickLink,
confirmDeleteDialog: self.options.confirmDeleteDialog,
editable: self.options.editable,
getSortValue: self.options.type == 'text'
? function(value) {

View file

@ -48,6 +48,7 @@ Ox.AnnotationPanel = function(options, self) {
.defaults({
calendarSize: 256,
clickLink: null,
confirmDeleteDialog: null,
editable: false,
enableExport: false,
enableImport: false,
@ -371,6 +372,7 @@ Ox.AnnotationPanel = function(options, self) {
self.$folder[index] = Ox.AnnotationFolder(
Ox.extend({
clickLink: self.options.clickLink,
confirmDeleteDialog: self.options.confirmDeleteDialog,
collapsed: !self.options.showLayers[layer.id],
editable: self.options.editable,
highlight: getHighlight(layer.id),

View file

@ -61,6 +61,7 @@ Ox.VideoAnnotationPanel = function(options, self) {
censoredIcon: '',
censoredTooltip: '',
clickLink: null,
confirmDeleteDialog: null,
cuts: [],
duration: 0,
enableDownload: false,
@ -844,6 +845,7 @@ Ox.VideoAnnotationPanel = function(options, self) {
autocomplete: self.options.autocomplete,
calendarSize: self.options.annotationsCalendarSize,
clickLink: self.options.clickLink,
confirmDeleteDialog: self.options.confirmDeleteDialog,
editable: true,
enableExport: self.options.enableExport,
enableImport: self.options.enableImport,