Merge branch '1228-Posicion-fija-para-boton-update-en-setup-visual-styles' into 'develop'

Apply comfort displacement to update button in visual styles section - #1288

See merge request artica/pandorafms!794
This commit is contained in:
vgilc 2017-10-26 13:54:03 +02:00
commit 3cbe8fa585
1 changed files with 17 additions and 0 deletions

View File

@ -934,6 +934,23 @@ tinyMCE.init({
});
$(document).ready (function () {
var comfort = 0;
if(comfort == 0){
$(':input,:radio,:checkbox,:file').change(function(){
$('#submit-update_button').css({'position':'fixed','right':'80px','bottom':'55px'});
var comfort = 1;
});
$("*").keydown(function(){
$('#submit-update_button').css({'position':'fixed','right':'80px','bottom':'55px'});
var comfort = 1;
});
$('#form_setup').after('<br>');
}
$("#form_setup #text-graph_color1").attachColorPicker();
$("#form_setup #text-graph_color2").attachColorPicker();
$("#form_setup #text-graph_color3").attachColorPicker();