From ebe6772e1b1fbcfbad6c3cc29db785ad0e5fa52f Mon Sep 17 00:00:00 2001 From: Nick Steel Date: Tue, 14 Apr 2015 23:02:31 +0100 Subject: [PATCH] Fixed indentation --- .../static/js/process_ws.js | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/mopidy_musicbox_webclient/static/js/process_ws.js b/mopidy_musicbox_webclient/static/js/process_ws.js index 1b750ff..57950b9 100644 --- a/mopidy_musicbox_webclient/static/js/process_ws.js +++ b/mopidy_musicbox_webclient/static/js/process_ws.js @@ -103,31 +103,31 @@ function processBrowseDir(resultArr) { rooturi = rooturi.slice(0, lastindex); if (browseStack.length > 0) { - child += backHtml; + child += backHtml; } browseTracks = []; for (var i = 0; i < resultArr.length; i++) { iconClass = getMediaClass(resultArr[i].uri); - if(resultArr[i].type == 'track' ) { -// console.log(resultArr[i]); - mopidy.library.lookup(resultArr[i].uri).then(function (resultArr) { - popupData[resultArr[0].uri] = resultArr[0]; - browseTracks.push(resultArr[0]); - }, console.error); - child += '
  • ' + - '' + - '' + - '

    ' + resultArr[i].name + '

  • '; - } else { + if (resultArr[i].type == 'track') { + //console.log(resultArr[i]); + mopidy.library.lookup(resultArr[i].uri).then(function (resultArr) { + popupData[resultArr[0].uri] = resultArr[0]; + browseTracks.push(resultArr[0]); + }, console.error); + child += '
  • ' + + '' + + '' + + '

    ' + resultArr[i].name + '

  • '; + } else { if (browseStack.length > 0) { iconClass="fa fa-folder-o"; } child += '
  • ' + resultArr[i].name + '

  • '; - } - }; + '"">

    ' + resultArr[i].name + '

    '; + } + } $('#browselist').html(child); if (browseStack.length > 0 ) {