Browse Source

CDB infobulle path

Affiche une infobulle sur les cellules de path contenant le path entier. Pratique quand la cellule est trop petite.
Jed974 4 years ago
parent
commit
e345db6d4a
1 changed files with 1 additions and 0 deletions
  1. 1 0
      hide/comp/cdb/Cell.hx

+ 1 - 0
hide/comp/cdb/Cell.hx

@@ -349,6 +349,7 @@ class Cell extends Component {
 			var ext = v.split(".").pop().toLowerCase();
 			var ext = v.split(".").pop().toLowerCase();
 			if (v == "") return '<span class="error">#MISSING</span>';
 			if (v == "") return '<span class="error">#MISSING</span>';
 			var html = StringTools.htmlEscape(v);
 			var html = StringTools.htmlEscape(v);
+			html = '<span title=\'$html\' >' + html  + '</span>';
 			if (!editor.quickExists(path)) return '<span class="error">$html</span>';
 			if (!editor.quickExists(path)) return '<span class="error">$html</span>';
 			else if( ext == "png" || ext == "jpg" || ext == "jpeg" || ext == "gif" ) {
 			else if( ext == "png" || ext == "jpg" || ext == "jpeg" || ext == "gif" ) {
 				var img = '<img src="$url" onload="$(this).parent().find(\'.label\').text(this.width+\'x\'+this.height)"/>';
 				var img = '<img src="$url" onload="$(this).parent().find(\'.label\').text(this.width+\'x\'+this.height)"/>';