From c57a6fea90f9bea2f57b19ff974f19fca2b708a5 Mon Sep 17 00:00:00 2001 From: Florian Kissling Date: Tue, 28 Apr 2015 02:41:52 +0200 Subject: [PATCH] Change "Loading remote data" formatRepo() markup. Now fits the styles in docs/_sass/_s2-result-repository. --- docs/examples.html | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/docs/examples.html b/docs/examples.html index bb4fccc3..b536500d 100644 --- a/docs/examples.html +++ b/docs/examples.html @@ -1042,22 +1042,21 @@ $.fn.select2.amd.require( function formatRepo (repo) { if (repo.loading) return repo.text; - var markup = '
' + - '
' + - '' + - '
' + - '
' + - '
' + - '
' + repo.full_name + '
' + - '
' + repo.forks_count + '
' + - '
' + repo.stargazers_count + '
' + - '
'; + var markup = "
" + + "
" + + "
" + + "
" + repo.full_name + "
"; - if (repo.description) { - markup += '
' + repo.description + '
'; - } + if (repo.description) { + markup += "
" + repo.description + "
"; + } - markup += '
'; + markup += "
" + + "
" + repo.forks_count + " Forks
" + + "
" + repo.stargazers_count + " Stars
" + + "
" + repo.watchers_count + " Watchers
" + + "
" + + "
"; return markup; }