js/core/file.js
// Visualization of files in dropdown view
Visualization of files in dropdown view
Visualization of files in dropdown view
function createFileHTML(file){
    var icon = '';
    switch(file.extension){
      case 'js' : 
      icon = 'icon-code';
      break
      case 'xml' : 
      icon = 'icon-block';
      break
      default :
      icon = 'icon-code';
      break
    }
    return  '<div id="fullFile' + file.identifier + '" class="file-link" data-id="' + file.identifier + '">' +
            '<span class="file-icon ' + icon + ' sml"></span>' +
            '<span class="file-title" data-name="' + file.name + '" title="' + file.name + '.' + file.extension + '">' + file.name + '.' + file.extension + '</span>' +
            '<span class="file-close close" data-id="' + file.identifier + '">X</span>' +
            '</div>\n';
  }
function createFileHTML ( file ) { var icon = '' ; switch ( file . extension ) { case 'js' : icon = 'icon-code' ; break case 'xml' : icon = 'icon-block' ; break default : icon = 'icon-code' ; break } return '<div id="fullFile' + file . identifier + '" class="file-link" data-id="' + file . identifier + '">' + '<span class="file-icon ' + icon + ' sml"></span>' + '<span class="file-title" data-name="' + file . name + '" title="' + file . name + '.' + file . extension + '">' + file . name + '.' + file . extension + '</span>' + '<span class="file-close close" data-id="' + file . identifier + '">X</span>' + '</div>\n' ; }
Visualization of files in dropdown view
Visualization of files in dropdown view