2012-07-05 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* include/functions_html.php: Changed path to image in html_print_image function if metaconsole is being using. * include/javascript/jquery.pandora.js: Added checks for jquery dialog messages that avoid js warnings. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6737 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
d48d55cb04
commit
f30b0dac38
|
@ -1,3 +1,11 @@
|
|||
2012-07-05 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
|
||||
|
||||
* include/functions_html.php: Changed path to image in
|
||||
html_print_image function if metaconsole is being using.
|
||||
|
||||
* include/javascript/jquery.pandora.js: Added checks for jquery
|
||||
dialog messages that avoid js warnings.
|
||||
|
||||
2012-07-05 Sergio Martin <sergio.martin@artica.es>
|
||||
|
||||
* include/functions_html.php
|
||||
|
|
|
@ -1207,18 +1207,26 @@ function html_print_checkbox ($name, $value, $checked = false, $return = false,
|
|||
function html_print_image ($src, $return = false, $options = false, $return_src = false, $relative = false) {
|
||||
global $config;
|
||||
|
||||
// If metaconsole is in use then don't use skins
|
||||
if (!defined('METACONSOLE')) {
|
||||
|
||||
/* Checks if user's skin is available */
|
||||
$isFunctionSkins = enterprise_include_once ('include/functions_skins.php');
|
||||
|
||||
if ($isFunctionSkins !== ENTERPRISE_NOT_HOOK) {
|
||||
$skin_path = enterprise_hook('skins_get_image_path', array($src));
|
||||
$skin_path = enterprise_hook('skins_get_image_path',array($src));
|
||||
if ($skin_path)
|
||||
$src = $skin_path;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (!$relative) {
|
||||
$urlImage = ui_get_full_url(false);
|
||||
|
||||
if (defined('METACONSOLE'))
|
||||
$urlImage .= ENTERPRISE_DIR . '/meta/';
|
||||
|
||||
// path to image
|
||||
$src = $urlImage . $src;
|
||||
}
|
||||
|
|
|
@ -86,6 +86,7 @@ $(document).ready (function () {
|
|||
return false;
|
||||
});
|
||||
|
||||
if ($('#license_error_msg_dialog').length) {
|
||||
|
||||
$( "#license_error_msg_dialog" ).dialog({
|
||||
resizable: true,
|
||||
|
@ -104,6 +105,8 @@ $(document).ready (function () {
|
|||
$("#license_error_msg_dialog" ).dialog('close')
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
$("a#dialog_license_info").click (function () {
|
||||
jQuery.get ("ajax.php",
|
||||
|
@ -133,6 +136,8 @@ $(document).ready (function () {
|
|||
return false;
|
||||
});
|
||||
|
||||
if ($('#msg_change_password').length) {
|
||||
|
||||
$( "#msg_change_password" ).dialog({
|
||||
resizable: true,
|
||||
draggable: true,
|
||||
|
@ -146,6 +151,10 @@ $(document).ready (function () {
|
|||
bgiframe: jQuery.browser.msie
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
if ($('#login_blocked').length) {
|
||||
|
||||
$( "#login_blocked" ).dialog({
|
||||
resizable: true,
|
||||
draggable: true,
|
||||
|
@ -159,5 +168,6 @@ $(document).ready (function () {
|
|||
bgiframe: jQuery.browser.msie
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue