CDR: Fixed export function.
This commit is contained in:
+19
-20
@@ -1409,28 +1409,27 @@
|
|||||||
|
|
||||||
<script language="JavaScript" type="text/javascript">
|
<script language="JavaScript" type="text/javascript">
|
||||||
|
|
||||||
$(document).ready(function() {
|
//display message bar via js
|
||||||
|
function display_message(msg, mood, delay) {
|
||||||
//display message bar via js
|
var mood = (typeof mood !== 'undefined') ? mood : 'default';
|
||||||
function display_message(msg, mood, delay) {
|
var delay = (typeof delay !== 'undefined') ? delay : <?php echo (1000 * (float) $_SESSION['theme']['message_delay']['text']); ?>;
|
||||||
var mood = (typeof mood !== 'undefined') ? mood : 'default';
|
if (msg != '') {
|
||||||
var delay = (typeof delay !== 'undefined') ? delay : <?php echo (1000 * (float) $_SESSION['theme']['message_delay']['text']); ?>;
|
var inner_width = $(window).width();
|
||||||
if (msg != '') {
|
// add class by mood
|
||||||
var inner_width = $(window).width();
|
$("#message_container").addClass('message_container_mood_'+mood);
|
||||||
// add class by mood
|
$("#message_text").addClass('message_text_mood_'+mood);
|
||||||
$("#message_container").addClass('message_container_mood_'+mood);
|
// output message
|
||||||
$("#message_text").addClass('message_text_mood_'+mood);
|
$("#message_text").html(msg);
|
||||||
// output message
|
$("#message_container").css({height: $("#message_text").css("height")});
|
||||||
$("#message_text").html(msg);
|
$("#message_container").css({width: inner_width});
|
||||||
$("#message_container").css({height: $("#message_text").css("height")});
|
$("#message_text").show().animate({top: '+=80'}, 500).animate({opacity: 1}, 'fast').delay(delay).animate({top: '-=80'}, 1000).animate({opacity: 0});
|
||||||
$("#message_container").css({width: inner_width});
|
$("#message_container").show().animate({top: '+=80'}, 500).animate({opacity: <?php echo $_SESSION['theme']['message_opacity']['text']; ?>}, "fast").delay(delay).animate({top: '-=80'}, 1000).animate({opacity: 0}, function() {
|
||||||
$("#message_text").show().animate({top: '+=80'}, 500).animate({opacity: 1}, 'fast').delay(delay).animate({top: '-=80'}, 1000).animate({opacity: 0});
|
$("#message_container").removeClass('message_container_mood_'+mood);
|
||||||
$("#message_container").show().animate({top: '+=80'}, 500).animate({opacity: <?php echo $_SESSION['theme']['message_opacity']['text']; ?>}, "fast").delay(delay).animate({top: '-=80'}, 1000).animate({opacity: 0}, function() {
|
});
|
||||||
$("#message_container").removeClass('message_container_mood_'+mood);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$(document).ready(function() {
|
||||||
|
|
||||||
//set response message, if any
|
//set response message, if any
|
||||||
<?php
|
<?php
|
||||||
|
|||||||
Reference in New Issue
Block a user