diff --git a/htdocs/admin/modules.php b/htdocs/admin/modules.php index 14c95aa0d2e..25868b7b2c2 100644 --- a/htdocs/admin/modules.php +++ b/htdocs/admin/modules.php @@ -37,6 +37,7 @@ $langs->load("admin"); $mode=GETPOST('mode', 'alpha')?GETPOST('mode', 'alpha'):(isset($_SESSION['mode'])?$_SESSION['mode']:0); $action=GETPOST('action','alpha'); $value=GETPOST('value', 'alpha'); +$page_y=GETPOST('page_y','int'); if (! $user->admin) accessforbidden(); @@ -67,7 +68,7 @@ if ($action == 'set' && $user->admin) { $result=activateModule($value); if ($result) setEventMessages($result, null, 'errors'); - header("Location: modules.php?mode=".$mode); + header("Location: modules.php?mode=".$mode.($page_y?'&page_y='.$page_y:'')); exit; } @@ -75,7 +76,7 @@ if ($action == 'reset' && $user->admin) { $result=unActivateModule($value); if ($result) setEventMessages($result, null, 'errors'); - header("Location: modules.php?mode=".$mode); + header("Location: modules.php?mode=".$mode.($page_y?'&page_y='.$page_y:'')); exit; } @@ -425,7 +426,7 @@ if ($mode != 'marketplace') } else { - print ''; + print ''; print img_picto($langs->trans("Activated"),'switch_on'); print ''; } @@ -488,7 +489,7 @@ if ($mode != 'marketplace') else { // Module non actif - print ''; + print ''; print img_picto($langs->trans("Disabled"),'switch_off'); print "\n"; } diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 2198cd9df13..a1b6cb45db8 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -4828,7 +4828,7 @@ class Form $ways = $c->print_all_ways(); // $ways[0] = "ccc2 >> ccc2a >> ccc2a1" with html formated text foreach($ways as $way) { - $toprint[] = '
  • color?' style="background: #'.$c->color.'"':'').'>'.img_object('','category').' '.$way.'
  • '; + $toprint[] = '
  • color?' style="background: #'.$c->color.';"':'').'>'.img_object('','category').' '.$way.'
  • '; } } return '
    '; diff --git a/htdocs/core/js/lib_head.js b/htdocs/core/js/lib_head.js index 6ddfa529bee..eab995d062b 100644 --- a/htdocs/core/js/lib_head.js +++ b/htdocs/core/js/lib_head.js @@ -924,28 +924,17 @@ function copyToClipboard(text,text2) } -/* - * Timer for delayed keyup function - * - * TODO Who use this ? - */ /* -(function($){ - $.widget("ui.onDelayedKeyup", { - _init : function() { - var self = this; - $(this.element).bind('keyup input', function() { - if(typeof(window['inputTimeout']) != "undefined"){ - window.clearTimeout(inputTimeout); - } - var handler = self.options.handler; - window['inputTimeout'] = window.setTimeout(function() { handler.call(self.element) }, self.options.delay); - }); - }, - options: { - handler: $.noop(), - delay: 500 - } - }); -})(jQuery); -*/ + * Provide a function to get an URL GET parameter in javascript + * + * @param string name Name of parameter + * @param mixed valueifnotfound Value if not found + * @return string Value + */ +function getParameterByName(name, valueifnotfound) +{ + name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]"); + var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"), + results = regex.exec(location.search); + return results === null ? valueifnotfound : decodeURIComponent(results[1].replace(/\+/g, " ")); +} diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index 2eae6360ffa..daa96d76775 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -5047,6 +5047,22 @@ function printCommonFooter($zone='private') if (! empty($conf->global->MAIN_HTML_FOOTER)) print $conf->global->MAIN_HTML_FOOTER."\n"; + print "\n"; + print ''."\n"; + // Google Analytics (need Google module) if (! empty($conf->google->enabled) && ! empty($conf->global->MAIN_GOOGLE_AN_ID)) { diff --git a/htdocs/theme/eldy/style.css.php b/htdocs/theme/eldy/style.css.php index 7f97637cf55..59461c1db87 100644 --- a/htdocs/theme/eldy/style.css.php +++ b/htdocs/theme/eldy/style.css.php @@ -3595,6 +3595,9 @@ a span.select2-chosen overflow: hidden; } +.noborderoncategories { + border: none !important; +} /* ============================================================================== */ /* Multiselect with checkbox */ diff --git a/htdocs/user/perms.php b/htdocs/user/perms.php index ae32a624175..fa54a128cac 100644 --- a/htdocs/user/perms.php +++ b/htdocs/user/perms.php @@ -331,9 +331,9 @@ if ($result) print ''.img_object('',$picto).' '.$objMod->getName(); print ' '; print ''; - print ''.$langs->trans("All").""; + print ''.$langs->trans("All").""; print '/'; - print ''.$langs->trans("None").""; + print ''.$langs->trans("None").""; print ''; print ' '; print ''."\n"; @@ -360,7 +360,7 @@ if ($result) { if ($caneditperms) { - print ''.img_edit_remove($langs->trans("Remove")).''; + print ''.img_edit_remove($langs->trans("Remove")).''; } print ''; print img_picto($langs->trans("Active"),'tick'); @@ -386,7 +386,7 @@ if ($result) // Do not own permission if ($caneditperms) { - print ''.img_edit_add($langs->trans("Add")).''; + print ''.img_edit_add($langs->trans("Add")).''; } print ' '; } @@ -396,7 +396,7 @@ if ($result) // Do not own permission if ($caneditperms) { - print ''.img_edit_add($langs->trans("Add")).''; + print ''.img_edit_add($langs->trans("Add")).''; } print ' '; }