cancel
Showing results for 
Search instead for 
Did you mean: 

Turn off 'Hover' Behaviour for Insitu Tag Editing

ryanmaclean
Champ in-the-making
Champ in-the-making
Apologies if this has been covered elsewhere, but I can't seem to track down the file we'd need to modify in order to turn this off.

Essentially, I'm looking to turn off the "hover" to bring up the edit icon while in the detailed document view. I'm happy to either:
- Create a new view that has this behaviour
- Turn off hiding globally

I've looked in the view definitions (documentList.js, documentViewDetailed.js), the main alfresco.js as well as many of the CSS files (for the span tag that is generated on the live page). I realize that these might also be the wrong places to look.
1 REPLY 1

scouil
Star Contributor
Star Contributor
Hi,

Actually you were quite close.
The hover functionality is defined in documentlist.js.

When Alfresco register the tags renderer:
this.registerRenderer("tags"

They also register an "insitu" editor:

if (jsNode.hasPermission("Write") && !jsNode.isLocked)
            {
               // Add the tags insitu editor
               this.insituEditors.push(
               {
                  context: id,
                  params:
                  {
                     type: "tagEditor",
                     nodeRef: jsNode.nodeRef.toString(),
                     name: "prop_cm_taggable",
                     value: record.node.properties["cm:taggable"],
                     validations: [
                     {
                        type: Alfresco.forms.validation.nodeName,
                        when: "keyup",
                        message: this.msg("validation-hint.nodeName")
                     },
                     {
                        type: Alfresco.forms.validation.length,
                        args: { min: 1, max: 255, crop: true, ignoreEmpty: true },
                        when: "keyup",
                        message: this.msg("validation-hint.length.min.max", 1, 255)
                     }],
                     title: this.msg("tip.insitu-tag"),
                     errorMessage: this.msg("message.insitu-edit.tag.failure")
                  },
                  callback:
                  {
                     fn: this._insituCallback,
                     scope: this,
                     obj: record
                  }
               });
            }

That's the one that triggers the edit inline capability.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.