Files
opensourcepos/app/Views/partial/lang_lines.php
Ollama 513cccad69 refactor: Replace var with let/const in inline JavaScript
- Fixed CodeRabbit review: changed enable_actions and load_success
  from const to let in manage_tables.js (they are reassigned in init)
- Replaced all var declarations in inline JavaScript in Views with
  let (for reassigned) or const (for never reassigned)
- Modernized 48 additional files with inline JavaScript
2026-04-15 12:45:32 +00:00

17 lines
393 B
PHP

<script type="text/javascript">
(function(lang, $) {
const lines = {
'common_submit': "<?= lang('Common.submit') ?>",
'common_close': "<?= lang('Common.close') ?>"
};
$.extend(lang, {
line: function(key) {
return lines[key];
}
});
})(window.lang = window.lang || {}, jQuery);
</script>