<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Alfresco Share 4.0 - making changes to out of the box files in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-share-4-0-making-changes-to-out-of-the-box-files/m-p/272209#M225339</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Sounds like you are just playing around, but I feel duty-bound to tell you anyway: You probably shouldn't change the client-side JavaScript files. You should be able to extend those JavaScript components to add your own functionality. And when you do that, it is a really good idea to use your own namespace. If you need an example of how to do that, check out rule-config-action-custom.js script in the &lt;A href="http://ecmarchitect.com/images/articles/alfresco-actions/actions-article-2ed.pdf" rel="nofollow noopener noreferrer"&gt;custom actions tutorial&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;Still, what you are doing should be possible.&lt;BR /&gt;&lt;BR /&gt;Make sure you have a non-minified version of the script called actions.js and a minified version of the script called actions-min.js. Share determines which one to use based on the client-debug flag in share-config-custom.xml:&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;config replace="true"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;flags&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;client-debug&amp;gt;false&amp;lt;/client-debug&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;client-debug-autologging&amp;gt;false&amp;lt;/client-debug-autologging&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/flags&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/config&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;If you have that flag set to false, it uses the minified version and if it is set to true it uses the non-minified version.&lt;BR /&gt;&lt;BR /&gt;Maybe you didn't replace both the minified and the non-minified versions of the file and Share is using the one you didn't expect?&lt;BR /&gt;&lt;BR /&gt;If that's not it and you are sure you've cleared your cache, you can always use Firebug or the equivalent JavaScript console in your browser to set some breakpoints and figure out what's going on.&lt;BR /&gt;&lt;BR /&gt;Jeff&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Jeff, thanks for the update. It turns out I was looking at the wrong actions javascript file. I should've been looking at documentlibrary-actions.js instead. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you able to overwrite the out of the box JS using a JAR file with the same path? I will also check out your example, especially relating to the Custom Action, it's something I'd like to look into regarding notifications.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Mar 2012 16:03:41 GMT</pubDate>
    <dc:creator>bengrah</dc:creator>
    <dc:date>2012-03-08T16:03:41Z</dc:date>
    <item>
      <title>Alfresco Share 4.0 - making changes to out of the box files</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-share-4-0-making-changes-to-out-of-the-box-files/m-p/272207#M225337</link>
      <description>Hi all.I'm just playing about with some of the out of the box files for document actions. I've made a copy of actions.js, made some changes, minified it using the YUI Compressor and copied it back into the /webapps/share/components/documentlibrary directory and overwritten the original file. But I c</description>
      <pubDate>Wed, 07 Mar 2012 11:46:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alfresco-share-4-0-making-changes-to-out-of-the-box-files/m-p/272207#M225337</guid>
      <dc:creator>bengrah</dc:creator>
      <dc:date>2012-03-07T11:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco Share 4.0 - making changes to out of the box files</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-share-4-0-making-changes-to-out-of-the-box-files/m-p/272208#M225338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sounds like you are just playing around, but I feel duty-bound to tell you anyway: You probably shouldn't change the client-side JavaScript files. You should be able to extend those JavaScript components to add your own functionality. And when you do that, it is a really good idea to use your own namespace. If you need an example of how to do that, check out rule-config-action-custom.js script in the &lt;/SPAN&gt;&lt;A href="http://ecmarchitect.com/images/articles/alfresco-actions/actions-article-2ed.pdf" rel="nofollow noopener noreferrer"&gt;custom actions tutorial&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Still, what you are doing should be possible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Make sure you have a non-minified version of the script called actions.js and a minified version of the script called actions-min.js. Share determines which one to use based on the client-debug flag in share-config-custom.xml:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;config replace="true"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;flags&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;client-debug&amp;gt;false&amp;lt;/client-debug&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;client-debug-autologging&amp;gt;false&amp;lt;/client-debug-autologging&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/flags&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/config&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;If you have that flag set to false, it uses the minified version and if it is set to true it uses the non-minified version.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe you didn't replace both the minified and the non-minified versions of the file and Share is using the one you didn't expect?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If that's not it and you are sure you've cleared your cache, you can always use Firebug or the equivalent JavaScript console in your browser to set some breakpoints and figure out what's going on.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2012 22:59:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alfresco-share-4-0-making-changes-to-out-of-the-box-files/m-p/272208#M225338</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2012-03-07T22:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco Share 4.0 - making changes to out of the box files</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/alfresco-share-4-0-making-changes-to-out-of-the-box-files/m-p/272209#M225339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Sounds like you are just playing around, but I feel duty-bound to tell you anyway: You probably shouldn't change the client-side JavaScript files. You should be able to extend those JavaScript components to add your own functionality. And when you do that, it is a really good idea to use your own namespace. If you need an example of how to do that, check out rule-config-action-custom.js script in the &lt;A href="http://ecmarchitect.com/images/articles/alfresco-actions/actions-article-2ed.pdf" rel="nofollow noopener noreferrer"&gt;custom actions tutorial&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;Still, what you are doing should be possible.&lt;BR /&gt;&lt;BR /&gt;Make sure you have a non-minified version of the script called actions.js and a minified version of the script called actions-min.js. Share determines which one to use based on the client-debug flag in share-config-custom.xml:&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;config replace="true"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;flags&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;client-debug&amp;gt;false&amp;lt;/client-debug&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;client-debug-autologging&amp;gt;false&amp;lt;/client-debug-autologging&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/flags&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/config&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;If you have that flag set to false, it uses the minified version and if it is set to true it uses the non-minified version.&lt;BR /&gt;&lt;BR /&gt;Maybe you didn't replace both the minified and the non-minified versions of the file and Share is using the one you didn't expect?&lt;BR /&gt;&lt;BR /&gt;If that's not it and you are sure you've cleared your cache, you can always use Firebug or the equivalent JavaScript console in your browser to set some breakpoints and figure out what's going on.&lt;BR /&gt;&lt;BR /&gt;Jeff&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Jeff, thanks for the update. It turns out I was looking at the wrong actions javascript file. I should've been looking at documentlibrary-actions.js instead. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you able to overwrite the out of the box JS using a JAR file with the same path? I will also check out your example, especially relating to the Custom Action, it's something I'd like to look into regarding notifications.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2012 16:03:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/alfresco-share-4-0-making-changes-to-out-of-the-box-files/m-p/272209#M225339</guid>
      <dc:creator>bengrah</dc:creator>
      <dc:date>2012-03-08T16:03:41Z</dc:date>
    </item>
  </channel>
</rss>

