You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by yu...@apache.org on 2013/06/21 00:57:41 UTC
svn commit: r1495225 -
/incubator/ambari/branches/branch-1.4.0/ambari-web/app/models/host.js
Author: yusaku
Date: Thu Jun 20 22:57:40 2013
New Revision: 1495225
URL: http://svn.apache.org/r1495225
Log:
AMBARI-2444. Hosts page: hostname completes with ellipsis even if it is short enough. (Oleg Nechiporenko via yusaku)
Modified:
incubator/ambari/branches/branch-1.4.0/ambari-web/app/models/host.js
Modified: incubator/ambari/branches/branch-1.4.0/ambari-web/app/models/host.js
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/branch-1.4.0/ambari-web/app/models/host.js?rev=1495225&r1=1495224&r2=1495225&view=diff
==============================================================================
--- incubator/ambari/branches/branch-1.4.0/ambari-web/app/models/host.js (original)
+++ incubator/ambari/branches/branch-1.4.0/ambari-web/app/models/host.js Thu Jun 20 22:57:40 2013
@@ -57,7 +57,7 @@ App.Host = DS.Model.extend({
}.property('App.router.clusterController.alerts.length'),
publicHostNameFormatted: function() {
- return this.get('publicHostName').substr(0, 20) + ' ...';
+ return this.get('publicHostName').length < 23 ? this.get('publicHostName') : this.get('publicHostName').substr(0, 20) + '...';
}.property('publicHostName'),
/**
* API return diskTotal and diskFree. Need to save their different