Commit 7b72890f26d6a4570dd8bc0bff277499b0b5c193

Authored by kevin_fourie
1 parent 3a6bc7ad

KTS-1693

"Improve the version notifier to be more intelligent about new versions"
Fixed the display errors of this issue.

Committed By: Kevin
Reviewed By: Jalaloedien



git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/STABLE/trunk@6748 c91229c3-7414-0410-bfa2-8a42b809f60b
plugins/ktstandard/KTAdminVersionPlugin.php
1 1 <?php
2 2 /**
3   - * $Id: KTWorkflowAssociation.php 5336 2006-04-25 12:42:45Z bshuttle $
  3 + * $Id:$
4 4 *
5 5 * The contents of this file are subject to the KnowledgeTree Public
6 6 * License Version 1.1.2 ("License"); You may not use this file except in
... ...
resources/js/adminversiondashlet.js
... ... @@ -20,7 +20,7 @@ AdminVersionDashlet.prototype = {
20 20 for(var k in this.currentVersions) {
21 21 if(res[k]!=this.currentVersions[k]) {
22 22 updates ++;
23   - appendChildNodes('up_upgrades', SPAN({'class':'up_new_version'}, k + ': ' + res[k]), BR(null));
  23 + appendChildNodes('up_upgrades', DIV({'class':'up_new_version'}, k + ': ' + res[k]), BR(null));
24 24 }
25 25 }
26 26  
... ...
templates/ktstandard/adminversion/dashlet.smarty
... ... @@ -5,7 +5,9 @@
5 5 }
6 6  
7 7 #up_single, #up_multi { display: none; }
8   -.up_new_version { font-weight: bold; }
  8 +.up_new_version { font-weight: bold; margin-left: 60px; }
  9 +#footerref { font-weight: bold; margin-left: 50px; }
  10 +
9 11 </style>
10 12  
11 13 {/literal}
... ... @@ -15,9 +17,7 @@
15 17 <script type="text/javascript">var _KT_VERSIONS = {$kt_versions};</script>
16 18 <script type="text/javascript">var _KT_VERSIONS_URL = "{$kt_versions_url}";</script>
17 19  
18   -<p>
19 20 <span id="up_single">{i18n}The following upgrade is available{/i18n}:</span>
20 21 <span id="up_multi">{i18n}The following upgrades are available{/i18n}:</span>
21   -<span id="up_upgrades"></span>
22   -{i18n}Please visit <a href="http://www.knowledgetree.com">www.knowledgetree.com</a> to find out more.{/i18n}
23   -</p>
  22 +<div id="up_upgrades"></div>
  23 +<div id="footerref">{i18n}Please visit <a href="http://www.knowledgetree.com">www.knowledgetree.com</a> to find out more.{/i18n}</div>
... ...