// Fix options with bad multishop visibility
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@8091 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -1891,7 +1891,7 @@ abstract class AdminTabCore
|
||||
echo (isset($field['desc']) ? '<p class="preference_description">'.$field['desc'].'</p>' : '');
|
||||
|
||||
// Is this field invisible in current shop context ?
|
||||
echo ($isInvisible) ? '<p><img src="../img/admin/warning.gif" /> <b>'.$this->l('You can\'t change the value of this configuration field in this shop context').'</b></p>' : '';
|
||||
echo ($isInvisible) ? '<p class="multishop_warning">'.$this->l('You can\'t change the value of this configuration field in this shop context').'</p>' : '';
|
||||
|
||||
echo '</div></div>';
|
||||
}
|
||||
|
||||
+10
-2
@@ -1627,12 +1627,20 @@ p.preference_description{
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.multishop_warning{
|
||||
background-image: url("../img/admin/warning.gif");
|
||||
background-repeat: no-repeat;
|
||||
color: #FE2744;
|
||||
font-weight: bold;
|
||||
padding-left: 22px;
|
||||
padding-top: 1px;
|
||||
}
|
||||
|
||||
.isDisabled{
|
||||
color: #3F3F3F;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
input.disable_me[disabled=disabled]
|
||||
{
|
||||
input.disable_me[disabled=disabled]{
|
||||
background-color: red;
|
||||
}
|
||||
@@ -829,6 +829,12 @@ function trackClickOnHelp(label, doc_version)
|
||||
|
||||
$(document).ready(function()
|
||||
{
|
||||
$('.isInvisible input, .isInvisible select, .isInvisible textarea').each(function(k, v)
|
||||
{
|
||||
$(v).attr('disabled', true);
|
||||
});
|
||||
|
||||
// Disable options fields for each row with a multishop default checkbox
|
||||
$('.preference_default_multishop input[type=checkbox]').each(function(k, v)
|
||||
{
|
||||
var key = $(v).attr('name');
|
||||
|
||||
Reference in New Issue
Block a user