2

I want to develop a plugin to disable file drag and drop in IBM Content Navigator.

Currently i overwrite the following event:

  require(["dojo/_base/declare",
         "dojo/_base/lang","dojo/aspect"], 
function(declare, lang, aspect) {       
    aspect.around(Tree.prototype, "onExternalDrop", function (original) {
        return function (evt) {
            return;
        };
    });
});

What is wrong here, ICN alterts an error after loading the plugin: CIWEB2039

Thanks for your help.

hub
  • 39
  • 6
  • Do you see any error when you deployed plugin? or when plug-in is getting loaded? – bajji Jul 31 '17 at 15:17
  • I get the following error during deployment: An error occured when evaluationg the JavaScript for the plugin xxxxxxxx. – hub Jul 31 '17 at 16:53
  • Is that your plugin js file? are you using fireofx with firebug to see the error? It should provide you the js file name. May be that would help to investigate the actual issue. – bajji Jul 31 '17 at 18:51

1 Answers1

0

Add

"ecm/widget/listView/gridModules/DndFromDesktopAddDoc" 

to require, and DndFromDesktopAddDoc to your function parameters.

tuomastik
  • 4,559
  • 5
  • 36
  • 48
Ariks
  • 118
  • 6