Commit 3658c1f0 authored by Efthymia Bika's avatar Efthymia Bika

Change 'show certificate settings' label

parent f2c02132
......@@ -351,7 +351,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<div class="clearfix pad-bottom">
<div class="small-3 columns">
<a onclick="toggle_settings('more_settings',
'more_icon')">
'more_icon', 'More', 'Less')">
<i class="fa fa-plus-square-o"
id="more_icon">&nbsp;More</i>
<a/>
......
......@@ -212,16 +212,16 @@ function delete_backup(backup) {
$(".tabs-content").hide();
}
function toggle_settings(hDiv, moreIcon) {
function toggle_settings(hDiv, moreIcon, more_label, less_label) {
var l_html = $("#" + moreIcon).html();
if(l_html == "&nbsp;More") {
if(l_html == "&nbsp;" + more_label) {
$("#" + hDiv).show();
$("#" + moreIcon).html("&nbsp;Less");
$("#" + moreIcon).html("&nbsp;" + less_label);
$("#" + moreIcon).removeClass("fa fa-plus-square-o");
$("#" + moreIcon).addClass("fa fa-minus-square-o");
} else {
$("#" + hDiv).hide();
$("#" + moreIcon).html("&nbsp;More");
$("#" + moreIcon).html("&nbsp;" + more_label);
$("#" + moreIcon).removeClass("fa fa-minus-square-o");
$("#" + moreIcon).addClass("fa fa-plus-square-o");
}
......
......@@ -444,11 +444,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</div>
</div>
<div class="clearfix">
<div class="small-3 columns">
<div class="small-5 columns">
<a onclick="toggle_settings('cert-path-div',
'more_icon');toggle_default_button()">
'more_icon', 'Show Certificate Settings',
'Hide Certificate Settings');
toggle_default_button()">
<i class="fa fa-plus-square-o"
id="more_icon">&nbsp;More</i>
id="more_icon">&nbsp;Show Certificate Settings</i>
</a>
</div>
</div>
......
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