svn commit: r1816931 - in /ofbiz/tools/wiki-files: external-link.js themes/README.md.html

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1816931 - in /ofbiz/tools/wiki-files: external-link.js themes/README.md.html

jleroux@apache.org
Author: jleroux
Date: Sat Dec  2 07:10:11 2017
New Revision: 1816931

URL: http://svn.apache.org/viewvc?rev=1816931&view=rev
Log:
Updates README.md.html

Adds external-link.js used in Visual Themes Gallery to create _blank links for
all links of the page (external only would not work because links to demos are
on the same domain it seems).
See https://confluence.atlassian.com/confkb/how-to-force-links-to-open-in-a-new-window-213518072.html
for more

Added:
    ofbiz/tools/wiki-files/external-link.js   (with props)
Modified:
    ofbiz/tools/wiki-files/themes/README.md.html

Added: ofbiz/tools/wiki-files/external-link.js
URL: http://svn.apache.org/viewvc/ofbiz/tools/wiki-files/external-link.js?rev=1816931&view=auto
==============================================================================
--- ofbiz/tools/wiki-files/external-link.js (added)
+++ ofbiz/tools/wiki-files/external-link.js Sat Dec  2 07:10:11 2017
@@ -0,0 +1,5 @@
+<script>
+jQuery(document).ready(function() {
+    jQuery(".wiki-content a").attr("target", "_blank");
+});
+</script>
\ No newline at end of file

Propchange: ofbiz/tools/wiki-files/external-link.js
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: ofbiz/tools/wiki-files/external-link.js
------------------------------------------------------------------------------
    svn:keywords = Date Rev Author URL Id

Propchange: ofbiz/tools/wiki-files/external-link.js
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: ofbiz/tools/wiki-files/themes/README.md.html
URL: http://svn.apache.org/viewvc/ofbiz/tools/wiki-files/themes/README.md.html?rev=1816931&r1=1816930&r2=1816931&view=diff
==============================================================================
--- ofbiz/tools/wiki-files/themes/README.md.html (original)
+++ ofbiz/tools/wiki-files/themes/README.md.html Sat Dec  2 07:10:11 2017
@@ -225,7 +225,7 @@ under the License.
 <p>All this logic is still present in the common-theme template to keep backward compatibility, but the VisualThemeRessource is now useless and properties have been migrated to the Theme definition in the part <strong>theme-properties</strong> ### Example with BlueLight The blue light theme has been these properties in VisualThemeRessource :</p>
 <div class="sourceCode"><pre class="sourceCode xml"><code class="sourceCode xml">    <span class="kw">&lt;VisualTheme</span><span class="ot"> visualThemeId=</span><span class="st">&quot;BLUELIGHT&quot;</span><span class="ot"> visualThemeSetId=</span><span class="st">&quot;BACKOFFICE&quot;</span><span class="ot"> description=</span><span class="st">&quot;BlueLight Theme: breadcrumbs, drop-down menus and rounded corners&quot;</span><span class="kw">/&gt;</span>
     <span class="kw">&lt;VisualThemeResource</span><span class="ot"> visualThemeId=</span><span class="st">&quot;BLUELIGHT&quot;</span><span class="ot"> resourceTypeEnumId=</span><span class="st">&quot;VT_NAME&quot;</span><span class="ot"> resourceValue=</span><span class="st">&quot;BLUELIGHT&quot;</span><span class="ot"> sequenceId=</span><span class="st">&quot;01&quot;</span><span class="kw">/&gt;</span>
-    <span class="kw">&lt;VisualThemeResource</span><span class="ot"> visualThemeId=</span><span class="st">&quot;BLUELIGHT&quot;</span><span class="ot"> resourceTypeEnumId=</span><span class="st">&quot;VT_HDR_IMAGE_URL&quot;</span><span class="ot"> resourceValue=</span><span class="st">&quot;/images/ofbiz_logo.gif&quot;</span><span class="ot"> sequenceId=</span><span class="st">&quot;01&quot;</span><span class="kw">/&gt;</span>
+    <span class="kw">&lt;VisualThemeResource</span><span class="ot"> visualThemeId=</span><span class="st">&quot;BLUELIGHT&quot;</span><span class="ot"> resourceTypeEnumId=</span><span class="st">&quot;VT_HDR_IMAGE_URL&quot;</span><span class="ot"> resourceValue=</span><span class="st">&quot;/images/ofbiz_logo.png&quot;</span><span class="ot"> sequenceId=</span><span class="st">&quot;01&quot;</span><span class="kw">/&gt;</span>
     <span class="kw">&lt;VisualThemeResource</span><span class="ot"> visualThemeId=</span><span class="st">&quot;BLUELIGHT&quot;</span><span class="ot"> resourceTypeEnumId=</span><span class="st">&quot;VT_SHORTCUT_ICON&quot;</span><span class="ot"> resourceValue=</span><span class="st">&quot;/images/ofbiz.ico&quot;</span><span class="ot"> sequenceId=</span><span class="st">&quot;01&quot;</span><span class="kw">/&gt;</span>
     <span class="kw">&lt;VisualThemeResource</span><span class="ot"> visualThemeId=</span><span class="st">&quot;BLUELIGHT&quot;</span><span class="ot"> resourceTypeEnumId=</span><span class="st">&quot;VT_SCREENSHOT&quot;</span><span class="ot"> resourceValue=</span><span class="st">&quot;/bluelight/screenshot.jpg&quot;</span><span class="ot"> sequenceId=</span><span class="st">&quot;01&quot;</span><span class="kw">/&gt;</span>