mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +02:00
Merge branch 'ent-3699-descuadre-visual-recuperar-password' into 'develop'
Ent 3699 descuadre visual recuperar password See merge request artica/pandorafms!2336
This commit is contained in:
commit
01514ba5b6
@ -1,386 +1,405 @@
|
|||||||
(function($) {
|
(function($) {
|
||||||
$.fn.check = function () {
|
$.fn.check = function() {
|
||||||
return this.each (function () {
|
return this.each(function() {
|
||||||
this.checked = true;
|
this.checked = true;
|
||||||
});};
|
});
|
||||||
|
};
|
||||||
|
|
||||||
$.fn.uncheck = function () {
|
$.fn.uncheck = function() {
|
||||||
return this.each (function () {
|
return this.each(function() {
|
||||||
this.checked = false;
|
this.checked = false;
|
||||||
});};
|
});
|
||||||
|
};
|
||||||
|
|
||||||
$.fn.enable = function () {
|
$.fn.enable = function() {
|
||||||
return $(this).removeAttr ("disabled");
|
return $(this).removeAttr("disabled");
|
||||||
};
|
};
|
||||||
|
|
||||||
$.fn.disable = function () {
|
$.fn.disable = function() {
|
||||||
return $(this).attr ("disabled", "disabled");
|
return $(this).attr("disabled", "disabled");
|
||||||
};
|
};
|
||||||
|
|
||||||
$.fn.pulsate = function () {
|
$.fn.pulsate = function() {
|
||||||
var i = 0;
|
var i = 0;
|
||||||
for (i = 0; i <= 2; i++) {
|
for (i = 0; i <= 2; i++) {
|
||||||
$(this).fadeOut ("slow").fadeIn ("slow");
|
$(this)
|
||||||
}
|
.fadeOut("slow")
|
||||||
};
|
.fadeIn("slow");
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
$.fn.showMessage = function (msg) {
|
$.fn.showMessage = function(msg) {
|
||||||
return $(this).hide ().empty ()
|
return (
|
||||||
// here, previously .text (msg)
|
$(this)
|
||||||
.html (msg)
|
.hide()
|
||||||
.slideDown ();
|
.empty()
|
||||||
};
|
// here, previously .text (msg)
|
||||||
}) (jQuery);
|
.html(msg)
|
||||||
|
.slideDown()
|
||||||
|
);
|
||||||
|
};
|
||||||
|
})(jQuery);
|
||||||
|
|
||||||
$(document).ready (function () {
|
$(document).ready(function() {
|
||||||
$("a#show_messages_dialog").click (function () {
|
$("a#show_messages_dialog").click(function() {
|
||||||
jQuery.post ("ajax.php",
|
jQuery.post(
|
||||||
{
|
"ajax.php",
|
||||||
"page": "operation/messages/message_list"
|
{
|
||||||
},
|
page: "operation/messages/message_list"
|
||||||
function (data, status) {
|
},
|
||||||
$("#dialog_messages").hide ()
|
function(data, status) {
|
||||||
.empty ()
|
$("#dialog_messages")
|
||||||
.append (data)
|
.hide()
|
||||||
.dialog ({
|
.empty()
|
||||||
title: $("a#show_messages_dialog").attr ("title"),
|
.append(data)
|
||||||
resizable: false,
|
.dialog({
|
||||||
modal: true,
|
title: $("a#show_messages_dialog").attr("title"),
|
||||||
overlay: {
|
resizable: false,
|
||||||
opacity: 0.5,
|
modal: true,
|
||||||
background: "black"
|
overlay: {
|
||||||
},
|
opacity: 0.5,
|
||||||
width: 700,
|
background: "black"
|
||||||
height: 300
|
},
|
||||||
}).show ();
|
width: 700,
|
||||||
},
|
height: 300
|
||||||
"html"
|
})
|
||||||
);
|
.show();
|
||||||
|
},
|
||||||
|
"html"
|
||||||
|
);
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
||||||
$("a.show_systemalert_dialog").click (function () {
|
$("a.show_systemalert_dialog").click(function() {
|
||||||
$('body').append( "<div id='opacidad' style='position:fixed;background:black;z-index:1'></div>" );
|
$("body").append(
|
||||||
$("#opacidad").css('opacity', 0.5);
|
"<div id='opacidad' style='position:fixed;background:black;z-index:1'></div>"
|
||||||
|
);
|
||||||
|
$("#opacidad").css("opacity", 0.5);
|
||||||
|
|
||||||
jQuery.post ("ajax.php",
|
jQuery.post(
|
||||||
{
|
"ajax.php",
|
||||||
"page": "operation/system_alert"},
|
{
|
||||||
function (data, status) {
|
page: "operation/system_alert"
|
||||||
$("#alert_messages").show();
|
},
|
||||||
$("#alert_messages").empty ().append (data);
|
function(data, status) {
|
||||||
$("#alert_messages").css('opacity', 1);
|
$("#alert_messages").show();
|
||||||
|
$("#alert_messages")
|
||||||
|
.empty()
|
||||||
|
.append(data);
|
||||||
|
$("#alert_messages").css("opacity", 1);
|
||||||
|
},
|
||||||
|
"html"
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
||||||
},
|
$("a.modalpopup").click(function() {
|
||||||
"html"
|
var elem = $(this).attr("id");
|
||||||
);
|
$("body").append(
|
||||||
});
|
"<div id='opacidad' style='position:fixed;background:black;z-index:1'></div>"
|
||||||
|
);
|
||||||
|
$("#opacidad").css("opacity", 0.5);
|
||||||
|
|
||||||
$("a.modalpopup").click (function () {
|
jQuery.post(
|
||||||
var elem = $(this).attr("id");
|
"ajax.php",
|
||||||
$('body').append( "<div id='opacidad' style='position:fixed;background:black;z-index:1'></div>" );
|
{
|
||||||
$("#opacidad").css('opacity', 0.5);
|
page: "general/alert_enterprise",
|
||||||
|
message: elem
|
||||||
|
},
|
||||||
|
function(data, status) {
|
||||||
|
$("#alert_messages").show();
|
||||||
|
$("#alert_messages")
|
||||||
|
.empty()
|
||||||
|
.append(data);
|
||||||
|
$("#alert_messages").css("opacity", 1);
|
||||||
|
},
|
||||||
|
"html"
|
||||||
|
);
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
|
||||||
jQuery.post ("ajax.php",
|
// Creacion de ventana modal y botones
|
||||||
{
|
$(".publienterprise").click(function() {
|
||||||
"page": "general/alert_enterprise",
|
var elem = $(this).attr("id");
|
||||||
"message": elem
|
$("body").append(
|
||||||
},
|
"<div id='opacidad' style='position:fixed;background:black;z-index:1'></div>"
|
||||||
function (data, status) {
|
);
|
||||||
$("#alert_messages").show();
|
$("#opacidad").css("opacity", 0.5);
|
||||||
$("#alert_messages").empty ().append (data);
|
|
||||||
$("#alert_messages").css('opacity', 1);
|
|
||||||
},
|
|
||||||
"html"
|
|
||||||
);
|
|
||||||
return false;
|
|
||||||
});
|
|
||||||
|
|
||||||
// Creacion de ventana modal y botones
|
jQuery.post(
|
||||||
$(".publienterprise").click (function () {
|
"ajax.php",
|
||||||
var elem = $(this).attr("id");
|
{
|
||||||
$('body').append( "<div id='opacidad' style='position:fixed;background:black;z-index:1'></div>" );
|
page: "general/alert_enterprise",
|
||||||
$("#opacidad").css('opacity', 0.5);
|
message: elem
|
||||||
|
},
|
||||||
|
function(data, status) {
|
||||||
|
$("#alert_messages").show();
|
||||||
|
$("#alert_messages")
|
||||||
|
.empty()
|
||||||
|
.append(data);
|
||||||
|
$("#alert_messages").css("opacity", 1);
|
||||||
|
},
|
||||||
|
"html"
|
||||||
|
);
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
|
||||||
jQuery.post ("ajax.php",
|
$(".publienterprisehide").click(function() {
|
||||||
{
|
var elem = $(this).attr("id");
|
||||||
"page": "general/alert_enterprise",
|
$("body").append(
|
||||||
"message": elem
|
"<div id='opacidad' style='position:fixed;background:black;z-index:1'></div>"
|
||||||
},
|
);
|
||||||
function (data, status) {
|
$("#opacidad").css("opacity", 0.5);
|
||||||
$("#alert_messages").show();
|
|
||||||
$("#alert_messages").empty ().append (data);
|
|
||||||
$("#alert_messages").css('opacity', 1);
|
|
||||||
},
|
|
||||||
"html"
|
|
||||||
);
|
|
||||||
return false;
|
|
||||||
});
|
|
||||||
|
|
||||||
|
jQuery.post(
|
||||||
|
"ajax.php",
|
||||||
|
{
|
||||||
|
page: "general/alert_enterprise",
|
||||||
|
message: elem
|
||||||
|
},
|
||||||
|
function(data, status) {
|
||||||
|
$("#alert_messages").show();
|
||||||
|
$("#alert_messages")
|
||||||
|
.empty()
|
||||||
|
.append(data);
|
||||||
|
$("#alert_messages").css("opacity", 1);
|
||||||
|
},
|
||||||
|
"html"
|
||||||
|
);
|
||||||
|
return false;
|
||||||
|
});
|
||||||
|
|
||||||
$(".publienterprisehide").click (function () {
|
if ($("#license_error_msg_dialog").length) {
|
||||||
var elem = $(this).attr("id");
|
if (typeof process_login_ok == "undefined") process_login_ok = 0;
|
||||||
$('body').append( "<div id='opacidad' style='position:fixed;background:black;z-index:1'></div>" );
|
|
||||||
$("#opacidad").css('opacity', 0.5);
|
|
||||||
|
|
||||||
jQuery.post ("ajax.php",
|
if (typeof show_error_license == "undefined") show_error_license = 0;
|
||||||
{
|
|
||||||
"page": "general/alert_enterprise",
|
|
||||||
"message": elem
|
|
||||||
},
|
|
||||||
function (data, status) {
|
|
||||||
$("#alert_messages").show();
|
|
||||||
$("#alert_messages").empty ().append (data);
|
|
||||||
$("#alert_messages").css('opacity', 1);
|
|
||||||
},
|
|
||||||
"html"
|
|
||||||
);
|
|
||||||
return false;
|
|
||||||
});
|
|
||||||
|
|
||||||
|
if (process_login_ok || show_error_license) {
|
||||||
|
$("#license_error_msg_dialog").dialog({
|
||||||
|
dialogClass: "no-close",
|
||||||
|
closeOnEscape: false,
|
||||||
|
resizable: false,
|
||||||
|
draggable: true,
|
||||||
|
modal: true,
|
||||||
|
height: 470,
|
||||||
|
width: 850,
|
||||||
|
overlay: {
|
||||||
|
opacity: 0.5,
|
||||||
|
background: "black"
|
||||||
|
},
|
||||||
|
open: function() {
|
||||||
|
var remaining = 30;
|
||||||
|
|
||||||
|
// Timeout counter.
|
||||||
|
var count = function() {
|
||||||
|
if (remaining > 0) {
|
||||||
|
$("#license_error_remaining").text(remaining);
|
||||||
|
remaining -= 1;
|
||||||
|
} else {
|
||||||
|
$("#license_error_remaining").hide();
|
||||||
|
$("#ok_buttom").show();
|
||||||
|
clearInterval(count);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
if ($('#license_error_msg_dialog').length) {
|
setInterval(count, 1000);
|
||||||
if (typeof(process_login_ok) == "undefined")
|
}
|
||||||
process_login_ok = 0;
|
});
|
||||||
|
|
||||||
if (typeof(show_error_license) == "undefined")
|
$("#submit-hide-license-error-msg").click(function() {
|
||||||
show_error_license = 0;
|
$("#license_error_msg_dialog").dialog("close");
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (process_login_ok || show_error_license) {
|
if ($("#msg_change_password").length) {
|
||||||
|
$("#msg_change_password").dialog({
|
||||||
|
resizable: false,
|
||||||
|
draggable: true,
|
||||||
|
modal: true,
|
||||||
|
height: 450,
|
||||||
|
width: 620,
|
||||||
|
overlay: {
|
||||||
|
opacity: 0.5,
|
||||||
|
background: "black"
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
$( "#license_error_msg_dialog" ).dialog({
|
if ($("#login_blocked").length) {
|
||||||
dialogClass: "no-close",
|
$("#login_blocked").dialog({
|
||||||
closeOnEscape: false,
|
resizable: true,
|
||||||
resizable: false,
|
draggable: true,
|
||||||
draggable: true,
|
modal: true,
|
||||||
modal: true,
|
height: 200,
|
||||||
height: 450,
|
width: 520,
|
||||||
width: 850,
|
overlay: {
|
||||||
overlay: {
|
opacity: 0.5,
|
||||||
opacity: 0.5,
|
background: "black"
|
||||||
background: "black"
|
}
|
||||||
},
|
});
|
||||||
open: function() {
|
}
|
||||||
var remaining = 30;
|
|
||||||
|
|
||||||
// Timeout counter.
|
if ($("#login_correct_pass").length) {
|
||||||
var count = function() {
|
$("#login_correct_pass").dialog({
|
||||||
if (remaining > 0) {
|
resizable: true,
|
||||||
$("#license_error_remaining").text(remaining);
|
draggable: true,
|
||||||
remaining -= 1;
|
modal: true,
|
||||||
} else {
|
height: 200,
|
||||||
$("#license_error_remaining").hide();
|
width: 520,
|
||||||
$("#ok_buttom").show();
|
overlay: {
|
||||||
clearInterval(count);
|
opacity: 0.5,
|
||||||
}
|
background: "black"
|
||||||
}
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
setInterval(count, 1000);
|
forced_title_callback();
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
$("#submit-hide-license-error-msg").click (function () {
|
$(document).on("scroll", function() {
|
||||||
$("#license_error_msg_dialog" ).dialog('close')
|
if (
|
||||||
});
|
document.documentElement.scrollTop != 0 ||
|
||||||
|
document.body.scrollTop != 0
|
||||||
|
) {
|
||||||
|
if ($("#head").css("position") == "fixed") {
|
||||||
|
if ($("#menu").css("position") == "fixed") {
|
||||||
|
$("#menu").css("top", "80px");
|
||||||
|
} else {
|
||||||
|
$("#menu").css("top", "60px");
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if ($("#menu").css("position") == "fixed") {
|
||||||
|
$("#menu").css("top", "20px");
|
||||||
|
} else {
|
||||||
|
$("#menu").css("top", "80px");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if ($("#head").css("position") == "fixed") {
|
||||||
|
if ($("#menu").css("position") == "fixed") {
|
||||||
|
$("#menu").css("top", "80px");
|
||||||
|
} else {
|
||||||
|
$("#menu").css("top", "60px");
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if ($("#menu").css("position") == "fixed") {
|
||||||
|
$("#menu").css("top", "80px");
|
||||||
|
} else {
|
||||||
|
$("#menu").css("top", "80px");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
// if((document.documentElement.scrollTop != 0 || document.body.scrollTop != 0) && $('#menu').css('position') =='fixed'){
|
||||||
}
|
// if($('#head').css('position') =='fixed'){
|
||||||
|
// $('#menu').css('top','80px');
|
||||||
|
// }
|
||||||
if ($('#msg_change_password').length) {
|
// else{
|
||||||
|
// $('#menu').css('top','20px');
|
||||||
$( "#msg_change_password" ).dialog({
|
// }
|
||||||
resizable: false,
|
// }
|
||||||
draggable: true,
|
// else{
|
||||||
modal: true,
|
// if($('#head').css('position') =='fixed'){
|
||||||
height: 350,
|
// if(document.documentElement.scrollTop != 0 || document.body.scrollTop != 0){
|
||||||
width: 620,
|
// $('#menu').css('top','60px');
|
||||||
overlay: {
|
// }else{
|
||||||
opacity: 0.5,
|
// $('#menu').css('top','80px');
|
||||||
background: "black"
|
// }
|
||||||
}
|
//
|
||||||
});
|
// }
|
||||||
|
// else{
|
||||||
}
|
// $('#menu').css('top','60px');
|
||||||
|
// }
|
||||||
if ($('#login_blocked').length) {
|
// }
|
||||||
|
});
|
||||||
$( "#login_blocked" ).dialog({
|
|
||||||
resizable: true,
|
|
||||||
draggable: true,
|
|
||||||
modal: true,
|
|
||||||
height: 200,
|
|
||||||
width: 520,
|
|
||||||
overlay: {
|
|
||||||
opacity: 0.5,
|
|
||||||
background: "black"
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($('#login_correct_pass').length) {
|
|
||||||
|
|
||||||
$( "#login_correct_pass" ).dialog({
|
|
||||||
resizable: true,
|
|
||||||
draggable: true,
|
|
||||||
modal: true,
|
|
||||||
height: 200,
|
|
||||||
width: 520,
|
|
||||||
overlay: {
|
|
||||||
opacity: 0.5,
|
|
||||||
background: "black"
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
forced_title_callback();
|
|
||||||
|
|
||||||
|
|
||||||
$(document).on("scroll", function(){
|
|
||||||
|
|
||||||
if(document.documentElement.scrollTop != 0 || document.body.scrollTop != 0){
|
|
||||||
if($('#head').css('position') =='fixed'){
|
|
||||||
if($('#menu').css('position') =='fixed'){
|
|
||||||
$('#menu').css('top','80px');
|
|
||||||
} else {
|
|
||||||
$('#menu').css('top','60px');
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
if($('#menu').css('position') =='fixed'){
|
|
||||||
$('#menu').css('top','20px');
|
|
||||||
} else {
|
|
||||||
$('#menu').css('top','80px');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
if($('#head').css('position') =='fixed'){
|
|
||||||
if($('#menu').css('position') =='fixed'){
|
|
||||||
$('#menu').css('top','80px');
|
|
||||||
} else {
|
|
||||||
$('#menu').css('top','60px');
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
if($('#menu').css('position') =='fixed'){
|
|
||||||
$('#menu').css('top','80px');
|
|
||||||
} else {
|
|
||||||
$('#menu').css('top','80px');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// if((document.documentElement.scrollTop != 0 || document.body.scrollTop != 0) && $('#menu').css('position') =='fixed'){
|
|
||||||
// if($('#head').css('position') =='fixed'){
|
|
||||||
// $('#menu').css('top','80px');
|
|
||||||
// }
|
|
||||||
// else{
|
|
||||||
// $('#menu').css('top','20px');
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// else{
|
|
||||||
// if($('#head').css('position') =='fixed'){
|
|
||||||
// if(document.documentElement.scrollTop != 0 || document.body.scrollTop != 0){
|
|
||||||
// $('#menu').css('top','60px');
|
|
||||||
// }else{
|
|
||||||
// $('#menu').css('top','80px');
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// }
|
|
||||||
// else{
|
|
||||||
// $('#menu').css('top','60px');
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
});
|
|
||||||
|
|
||||||
$("#alert_messages").draggable();
|
|
||||||
$("#alert_messages").css({'left':+parseInt(screen.width/2)-parseInt($("#alert_messages").css('width'))/2+'px'});
|
|
||||||
|
|
||||||
|
$("#alert_messages").draggable();
|
||||||
|
$("#alert_messages").css({
|
||||||
|
left:
|
||||||
|
+parseInt(screen.width / 2) -
|
||||||
|
parseInt($("#alert_messages").css("width")) / 2 +
|
||||||
|
"px"
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function forced_title_callback() {
|
function forced_title_callback() {
|
||||||
// Forced title code
|
// Forced title code
|
||||||
$('body').on('mouseenter', '.forced_title', function() {
|
$("body").on("mouseenter", ".forced_title", function() {
|
||||||
///////////////////////////////////////////
|
///////////////////////////////////////////
|
||||||
// Put the layer in the left-top corner to fill it
|
// Put the layer in the left-top corner to fill it
|
||||||
///////////////////////////////////////////
|
///////////////////////////////////////////
|
||||||
$('#forced_title_layer').css('left', 0);
|
$("#forced_title_layer").css("left", 0);
|
||||||
$('#forced_title_layer').css('top', 0);
|
$("#forced_title_layer").css("top", 0);
|
||||||
|
|
||||||
///////////////////////////////////////////
|
///////////////////////////////////////////
|
||||||
// Get info of the image
|
// Get info of the image
|
||||||
///////////////////////////////////////////
|
///////////////////////////////////////////
|
||||||
|
|
||||||
var img_top = $(this).offset().top;
|
var img_top = $(this).offset().top;
|
||||||
var img_width = $(this).width();
|
var img_width = $(this).width();
|
||||||
var img_height = $(this).height();
|
var img_height = $(this).height();
|
||||||
var img_id = $(this).attr('id');
|
var img_id = $(this).attr("id");
|
||||||
var img_left_mid = $(this).offset().left + (img_width / 2);
|
var img_left_mid = $(this).offset().left + img_width / 2;
|
||||||
|
|
||||||
///////////////////////////////////////////
|
///////////////////////////////////////////
|
||||||
// Put title in the layer
|
// Put title in the layer
|
||||||
///////////////////////////////////////////
|
///////////////////////////////////////////
|
||||||
|
|
||||||
// If the '.forced_title' element has 'use_title_for_force_title' = 1
|
// If the '.forced_title' element has 'use_title_for_force_title' = 1
|
||||||
// into their 'data' prop, the element title will be used for the
|
// into their 'data' prop, the element title will be used for the
|
||||||
// content.
|
// content.
|
||||||
if ($(this).data("use_title_for_force_title")) {
|
if ($(this).data("use_title_for_force_title")) {
|
||||||
var title = $(this).data("title");
|
var title = $(this).data("title");
|
||||||
}
|
} else {
|
||||||
else {
|
var title = $("#forced_title_" + img_id).html();
|
||||||
var title = $('#forced_title_'+img_id).html();
|
}
|
||||||
}
|
|
||||||
|
|
||||||
$('#forced_title_layer').html(title);
|
$("#forced_title_layer").html(title);
|
||||||
|
|
||||||
///////////////////////////////////////////
|
///////////////////////////////////////////
|
||||||
// Get info of the layer
|
// Get info of the layer
|
||||||
///////////////////////////////////////////
|
///////////////////////////////////////////
|
||||||
|
|
||||||
var layer_width = $('#forced_title_layer').width();
|
var layer_width = $("#forced_title_layer").width();
|
||||||
var layer_height = $('#forced_title_layer').height();
|
var layer_height = $("#forced_title_layer").height();
|
||||||
|
|
||||||
///////////////////////////////////////////
|
///////////////////////////////////////////
|
||||||
// Obtain the new position of the layer
|
// Obtain the new position of the layer
|
||||||
///////////////////////////////////////////
|
///////////////////////////////////////////
|
||||||
|
|
||||||
// Jquery doesnt know the padding of the layer
|
// Jquery doesnt know the padding of the layer
|
||||||
var layer_padding = 4;
|
var layer_padding = 4;
|
||||||
|
|
||||||
// Deduct padding of both sides
|
// Deduct padding of both sides
|
||||||
var layer_top = img_top - layer_height - (layer_padding * 2) - 5;
|
var layer_top = img_top - layer_height - layer_padding * 2 - 5;
|
||||||
if (layer_top < 0) {
|
if (layer_top < 0) {
|
||||||
layer_top = img_top + img_height + (layer_padding * 2);
|
layer_top = img_top + img_height + layer_padding * 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Deduct padding of one side
|
// Deduct padding of one side
|
||||||
var layer_left = img_left_mid - (layer_width / 2) - layer_padding;
|
var layer_left = img_left_mid - layer_width / 2 - layer_padding;
|
||||||
if (layer_left < 0) {
|
if (layer_left < 0) {
|
||||||
layer_left = 0;
|
layer_left = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
var real_layer_width = layer_width + (layer_padding * 2) + 5;
|
var real_layer_width = layer_width + layer_padding * 2 + 5;
|
||||||
var layer_right = layer_left + real_layer_width;
|
var layer_right = layer_left + real_layer_width;
|
||||||
var screen_width = $(window).width();
|
var screen_width = $(window).width();
|
||||||
if (screen_width < layer_right) {
|
if (screen_width < layer_right) {
|
||||||
layer_left = screen_width - real_layer_width;
|
layer_left = screen_width - real_layer_width;
|
||||||
}
|
}
|
||||||
|
|
||||||
///////////////////////////////////////////
|
///////////////////////////////////////////
|
||||||
// Set the layer position and show
|
// Set the layer position and show
|
||||||
///////////////////////////////////////////
|
///////////////////////////////////////////
|
||||||
|
|
||||||
$('#forced_title_layer').css('left', layer_left);
|
$("#forced_title_layer").css("left", layer_left);
|
||||||
$('#forced_title_layer').css('top', layer_top);
|
$("#forced_title_layer").css("top", layer_top);
|
||||||
$('#forced_title_layer').show();
|
$("#forced_title_layer").show();
|
||||||
});
|
});
|
||||||
$('body').on('mouseout', '.forced_title', function () {
|
$("body").on("mouseout", ".forced_title", function() {
|
||||||
$('#forced_title_layer').hide().empty();
|
$("#forced_title_layer")
|
||||||
});
|
.hide()
|
||||||
|
.empty();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -406,6 +406,8 @@ div.form_message_alert ul li input {
|
|||||||
}
|
}
|
||||||
|
|
||||||
div.form_message_alert ul li label {
|
div.form_message_alert ul li label {
|
||||||
|
display: inline-block;
|
||||||
|
width: 145px;
|
||||||
font-size: 10pt;
|
font-size: 10pt;
|
||||||
padding-right: 20px;
|
padding-right: 20px;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user