Skip to content

Commit

Permalink
hide language fields if not to be saved
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasKrais committed Jan 22, 2019
1 parent f43593f commit 7186c00
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pages/category.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
});

// Hide on selection change
$("select[name='form[lang][1][translation_needs_update]']").on('change', function(e) {
$("select[name='form[lang][<?php print $rex_clang->getId(); ?>][translation_needs_update]']").on('change', function(e) {
toggleClangDetailsView(<?php print $rex_clang->getId(); ?>);
});
</script>
Expand Down
2 changes: 1 addition & 1 deletion pages/property.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@
});

// Hide on selection change
$("select[name='form[lang][1][translation_needs_update]']").on('change', function(e) {
$("select[name='form[lang][<?php print $rex_clang->getId(); ?>][translation_needs_update]']").on('change', function(e) {
toggleClangDetailsView(<?php print $rex_clang->getId(); ?>);
});
</script>
Expand Down
2 changes: 1 addition & 1 deletion plugins/window_advertising/pages/advertisement.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
});

// Hide on selection change
$("select[name='form[lang][1][translation_needs_update]']").on('change', function(e) {
$("select[name='form[lang][<?php print $rex_clang->getId(); ?>][translation_needs_update]']").on('change', function(e) {
toggleClangDetailsView(<?php print $rex_clang->getId(); ?>);
});
</script>
Expand Down

0 comments on commit 7186c00

Please sign in to comment.