Commit cc61b828 authored by Efthymia Bika's avatar Efthymia Bika

Toggle activity log

parent 56a8b401
......@@ -576,9 +576,22 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<i class="fa fa-spinner fa-pulse fa-2x gray-spin"></i>
</div>
</div>
<div class="row">
<div class="small-1 columns">&nbsp;</div>
<div id="show_log" class="clearfix pad-bottom hide">
<div class="small-3 columns">
<a onclick="toggle_settings('msg', 'more_log_icon',
'Show activity log', 'Hide activity log');
$('html,body').animate({scrolltop: '500px'}, 'slow');">
<i class="fa fa-plus-square-o"
id="more_log_icon">&nbsp;Show activity log</i>
<a/>
</div>
</div>
</div>
<div class="row">
<div class="small-1 columns"></div>
<pre id="msg" class="small-11 columns"></pre>
<pre id="msg" class="small-11 columns hide"></pre>
</div>
<script type="text/javascript">
$(document).foundation();
......
......@@ -32,17 +32,23 @@ function toggle_msgs(data, msgDiv, append) {
if(data) {
if(append) {
$("#" + msgDiv).append(data);
if(msgDiv == "msg") {
$("#show_log").removeClass("hide");
}
$("#" + msgDiv).animate({scrollTop: "+=300px"}, "slow");
} else {
$("#" + msgDiv).html(data);
}
$("#" + msgDiv).addClass("panel");
$("html,body").animate({scrollTop:
$("#" + msgDiv).offset().top}, "slow");
// $("html,body").animate({scrollTop:
// $(document).height()}, "slow");
} else {
$("#" + msgDiv).html("");
$("#" + msgDiv).removeClass("panel");
if($("#error-alert")) $("#error-alert").hide();
if(msgDiv == "msg") {
$("#show_log").addClass("hide");
}
}
}
......@@ -192,7 +198,7 @@ function save_backup_set(is_template) {
selected_backup = cloud + "/" + backup_name;
render_backup_sets("");
show_alert_box("Successfully saved backup set", "success", true);
//show_alert_box("Successfully saved backup set", "success", true);
write_conf_file(BACKUP_CONF_FILE, backups);
} else {
var template = {};
......
......@@ -238,9 +238,22 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</a>
<a class="close-reveal-modal" aria-label="Close">&#215;</a>
</div>
<div class="clearfix">
<div class="small-1 columns">&nbsp;</div>
<div id="show_log" class="clearfix pad-bottom hide">
<div class="small-3 columns">
<a onclick="toggle_settings('msg', 'more_log_icon',
'Show activity log', 'Hide activity log');
$('html,body').animate({scrolltop: '500px'}, 'slow');">
<i class="fa fa-plus-square-o"
id="more_log_icon">&nbsp;Show activity log</i>
<a/>
</div>
</div>
</div>
<div class="row">
<div class="small-1 columns"></div>
<pre id="msg" class="small-11 columns"></pre>
<pre id="msg" class="small-11 columns hide"></pre>
</div>
<script type="text/javascript">
$(document).foundation();
......
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