diff options
author | Marius Avram <marius.avram@intel.com> | 2014-08-29 15:51:26 +0300 |
---|---|---|
committer | Alexandru DAMIAN <alexandru.damian@intel.com> | 2014-09-04 17:27:58 +0100 |
commit | cdaea8951df6b707afd1fefbf22295088256dd6f (patch) | |
tree | dafd12ffcb186604d965370ef6b1236b110b67aa | |
parent | 880b58c845e3a501fa90d24e1bd89c87ca84b709 (diff) | |
download | bitbake-cdaea8951df6b707afd1fefbf22295088256dd6f.tar.gz |
toaster: fix some code spacing issues
Code is related to the basetable templates files.
It had mixed tabs and spaces and was miss aligned in various places,
making it hard to read.
Signed-off-by: Marius Avram <marius.avram@intel.com>
-rw-r--r-- | lib/toaster/toastergui/templates/basetable_bottom.html | 39 | ||||
-rw-r--r-- | lib/toaster/toastergui/templates/basetable_top.html | 9 |
2 files changed, 25 insertions, 23 deletions
diff --git a/lib/toaster/toastergui/templates/basetable_bottom.html b/lib/toaster/toastergui/templates/basetable_bottom.html index cbdc16427..e6b950628 100644 --- a/lib/toaster/toastergui/templates/basetable_bottom.html +++ b/lib/toaster/toastergui/templates/basetable_bottom.html @@ -23,13 +23,14 @@ {%endif%} </ul> <div class="pull-right"> - <span class="help-inline" style="padding-top:5px;">Show rows:</span> - <select style="margin-top:5px;margin-bottom:0px;" class="pagesize"> - {% with "2 5 10 25 50 100" as list%} - {% for i in list.split %}<option value="{{i}}">{{i}}</option> - {% endfor %} - {% endwith %} - </select> + <span class="help-inline" style="padding-top:5px;">Show rows:</span> + <select style="margin-top:5px;margin-bottom:0px;" class="pagesize"> + {% with "2 5 10 25 50 100" as list%} + {% for i in list.split %} + <option value="{{i}}">{{i}}</option> + {% endfor %} + {% endwith %} + </select> </div> </div> @@ -40,21 +41,21 @@ // we load cookies for the column display save = $.cookie('_displaycols_{{objectname}}'); - if (save != undefined) { - setting = save.split(';'); - for ( i = 0; i < setting.length; i++) { - if (setting[i].length > 0) { - splitlist = setting[i].split(':'); - id = splitlist[0], v = splitlist[1]; - if (v == 'true') { - $('.chbxtoggle#'+id).prop('checked', true); - } - else { - $('.chbxtoggle#'+id).prop('checked', false); + if (save != undefined) { + setting = save.split(';'); + for ( i = 0; i < setting.length; i++) { + if (setting[i].length > 0) { + splitlist = setting[i].split(':'); + id = splitlist[0], v = splitlist[1]; + if (v == 'true') { + $('.chbxtoggle#'+id).prop('checked', true); + } + else { + $('.chbxtoggle#'+id).prop('checked', false); + } } } } - } // load cookie for number of entries to be displayed on page pagesize = $.cookie('count'); diff --git a/lib/toaster/toastergui/templates/basetable_top.html b/lib/toaster/toastergui/templates/basetable_top.html index 037554b62..e43eb2ce1 100644 --- a/lib/toaster/toastergui/templates/basetable_top.html +++ b/lib/toaster/toastergui/templates/basetable_top.html @@ -211,10 +211,11 @@ <span class="divider-vertical"></span> <span class="help-inline" style="padding-top:5px;">Show rows:</span> <select style="margin-top:5px;margin-bottom:0px;" class="pagesize"> - {% with "2 5 10 25 50 100" as list%} -{% for i in list.split %} <option value="{{i}}">{{i}}</option> - {% endfor %} - {% endwith %} + {% with "2 5 10 25 50 100" as list%} + {% for i in list.split %} + <option value="{{i}}">{{i}}</option> + {% endfor %} + {% endwith %} </select> </div> </div> |