forked from 0x2620/oxjs
select multple annotations, option to pass confirm delete dialog
This commit is contained in:
parent
96d4dfe71d
commit
03eb3d4a56
4 changed files with 42 additions and 19 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue