Hide unit label if there is no value

This commit is contained in:
Nathan Gray 2016-05-04 18:01:20 +00:00
parent 00d668f6d5
commit d7eb464605

View File

@ -794,7 +794,7 @@ var et2_date_duration = (function(){ "use strict"; return et2_date.extend(
}
else
{
this.format.text(this.time_formats[display.unit]);
this.format.text(display.unit ? this.time_formats[display.unit] : '');
}
}
},