AnsweredAssumed Answered

hide options in copy-move-to

Question asked by mrksjs on Aug 15, 2012
Latest reply on Aug 31, 2015 by janaka1984
hi!


i'dl like to hide the two buttons in the copy-move-to dashlet/popup but cant manage to get it done!


[img]http://i49.tinypic.com/23vghh3.jpg[/img]

i modified copy-move-to.js in \tomcat\webapps\share\modules\documentlibrary\

see allowedViewModes
  YAHOO.extend(Alfresco.module.DoclibCopyMoveTo, Alfresco.module.DoclibGlobalFolder,
   {
      /**
       * Set multiple initialization options at once.
       *
       * @method setOptions
       * @override
       * @param obj {object} Object literal specifying a set of options
       * @return {Alfresco.module.DoclibMoveTo} returns 'this' for method chaining
       */
      setOptions: function DLCMT_setOptions(obj)
      {
         var myOptions =
          {
            allowedViewModes:
            [
               Alfresco.module.DoclibGlobalFolder.VIEW_MODE_SITE
               // was
               // Alfresco.module.DoclibGlobalFolder.VIEW_MODE_SITE,
               // Alfresco.module.DoclibGlobalFolder.VIEW_MODE_REPOSITORY,
               // Alfresco.module.DoclibGlobalFolder.VIEW_MODE_USERHOME
            ],
            extendedTemplateUrl: Alfresco.constants.URL_SERVICECONTEXT + "modules/documentlibrary/copy-move-to"
          };

         …
         

but no change is done.
any hints?



additional:
i edited copy-move-to.js and duplicated to file to copy-move-to-min.js
i cant see the script in the debugger?!

version is 3.4.10 enterprise

Outcomes