Commit c46d04e1 authored by Christodoulos Psaltis's avatar Christodoulos Psaltis
Browse files

Minor template formatting changes

parent d5719f9f
......@@ -211,7 +211,7 @@ function update_machines_view(data){
// starting is not an api state, it means the server is stopped or on error
tableData[current][0] = "<input class="+server.status+" id="+server.id+" type=checkbox>";
imgSrc = "static/wave.gif";
imgStr = "<img class=list-logo src=" + imgSrc + " title=" + osTag + " height=16 width=16 />";
imgStr = "<img class=list-logo src=" + imgSrc + " title=" + osTag + " height=16 width=16></img>";
tableData[current][1] = "<span class=imagetag>" + osTag + "</span>" + imgStr;
tableData[current][2] = "<a class=name><span class=name>" + server.name.substring(0,60) + "</span></a>";
//tableData[current][4] = "group"; //TODO
......@@ -224,7 +224,7 @@ function update_machines_view(data){
'Shutting down'].indexOf(server_row.find('span.status').text()) >= 0) {
tableData[current][0] = "<input class="+server.status+" id="+server.id+" type=checkbox>";
imgSrc = "static/wave.gif";
imgStr = "<img class=list-logo src=" + imgSrc + " title=" + osTag + " height=16 width=16 />";
imgStr = "<img class=list-logo src=" + imgSrc + " title=" + osTag + " height=16 width=16></img>";
tableData[current][1] = "<span class=imagetag>" + osTag + "</span>" + imgStr;
tableData[current][2] = "<a class=name><span class=name>" + server.name.substring(0,60) + "</span></a>";
//tableData[current][4] = "group"; //TODO
......@@ -238,7 +238,7 @@ function update_machines_view(data){
[STATUS_MESSAGES['BUILD'], 'Rebooting'].indexOf(server_row.find('span.status').text()) >= 0) {
tableData[current][0] = "<input class="+server.status+" id="+server.id+" type=checkbox>";
imgSrc = "static/wave.gif";
imgStr = "<img class=list-logo src=" + imgSrc + " title=" + osTag + " height=16 width=16 />";
imgStr = "<img class=list-logo src=" + imgSrc + " title=" + osTag + " height=16 width=16></img>";
tableData[current][1] = "<span class=imagetag>" + osTag + "</span>" + imgStr;
tableData[current][2] = "<a class=name><span class=name>" + server.name.substring(0,60) + "</span></a>";
//tableData[current][4] = "group"; //TODO
......
......@@ -74,7 +74,10 @@ $("a.show-metadata").live('click', function() {
//initiate machine renaming
$(".rename, h5.editable span.name").live('click', function() {
$(this).parent().find('.name').html("<input id=\"txtEdit\" type=\"text\" class=\"nametextbox\" value=\"" + $(this).parent().find('.name').text() + "\" / ><span class=\"oldValue\" style=\"display:none;\" >" + $(this).parent().find('.name').text() + "</span>");
$(this).parent().find('.name').html("<input id=\"txtEdit\" type=\"text\" class=\"nametextbox\" value=\"" +
$(this).parent().find('.name').text() +
"\" / ><span class=\"oldValue\" style=\"display:none;\" >" +
$(this).parent().find('.name').text() + "</span>");
$(this).parent().find('.rename').hide();
$(this).parent().find(".editbuttons").fadeIn();
$(this).parent().removeClass('editable');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment