Commit 4f7b15ed authored by Piotr Gawron's avatar Piotr Gawron
Browse files

text in save button removed by icon

parent 1ba2cd28
......@@ -120,6 +120,11 @@ ConfigurationAdminPanel.prototype.optionToTableRow = function (option, editable)
var value = option.getValue();
var row = [];
var editOption;
var disabled = '';
if (!editable) {
disabled = " disabled ";
}
if (option.getValueType() === "STRING" ||
option.getValueType() === "INTEGER" ||
option.getValueType() === "DOUBLE" ||
......@@ -146,11 +151,7 @@ ConfigurationAdminPanel.prototype.optionToTableRow = function (option, editable)
}
row[0] = option.getCommonName();
row[1] = editOption;
if (editable) {
row[2] = "<button name='saveOption' data='" + option.getType() + "'>SAVE</button>";
} else {
row[2] = "<button name='saveOption' data='" + option.getType() + "' disabled>SAVE</button>";
}
row[2] = "<button name='saveOption' data='" + option.getType() + "' " + disabled + "><i class='fa fa-save' style='font-size:17px'></i></button>";
return row;
};
......
......@@ -643,7 +643,7 @@ EditProjectDialog.prototype.userToTableRow = function (user, columns) {
}
}
row.push("<button name='saveUser' data='" + login + "'>SAVE</button>");
row.push("<button name='saveUser' data='" + login + "'><i class=\"fa fa-save\" style=\"font-size:17px\"></i></button>");
return row;
};
......@@ -700,7 +700,7 @@ EditProjectDialog.prototype.overlayToTableRow = function (overlay, users) {
row[4] = defaultOverlayCheckbox;
row[5] = creatorSelect;
row[6] = downloadSourceButton;
row[7] = "<button name='saveOverlay' data='" + id + "'>SAVE</button>";
row[7] = "<button name='saveOverlay' data='" + id + "'><i class=\"fa fa-save\" style=\"font-size:17px\"></i></button>";
row[8] = "<button name='removeOverlay' data='" + id + "'>REMOVE</button>";
return row;
......@@ -725,7 +725,7 @@ EditProjectDialog.prototype.mapToTableRow = function (map, users) {
row[2] = "<input name='defaultCenterX-" + id + "' value='" + centerX + "'/>";
row[3] = "<input name='defaultCenterY-" + id + "' value='" + centerY + "'/>";
row[4] = "<input name='defaultZoomLevel-" + id + "' value='" + zoomLevel + "'/>";
row[5] = "<button name='saveMap' data='" + id + "'>SAVE</button>";
row[5] = "<button name='saveMap' data='" + id + "'><i class=\"fa fa-save\" style=\"font-size:17px\"></i></button>";
return row;
};
......
Supports Markdown
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