js: fixed usage of minimized JS

This commit is contained in:
Marcin Kuzminski 2019-10-31 15:13:08 +01:00
parent cd0bf47064
commit 8a683cb244
3 changed files with 3 additions and 3 deletions

View file

@ -190,7 +190,7 @@ let
postInstall = ''
# check required files
STATIC_CHECK="/robots.txt /502.html
/js/scripts.js /js/rhodecode-components.js
/js/scripts.min.js /js/rhodecode-components.js
/css/style.css /css/style-polymer.css /css/style-ipython.css"
for file in $STATIC_CHECK;

View file

@ -62,7 +62,7 @@ class TestHomeController(TestController):
rhodecode_version_hash = calculate_version_hash(
{'beaker.session.secret': 'test-rc-uytcxaz'})
response.mustcontain('style.css?ver={0}'.format(rhodecode_version_hash))
response.mustcontain('scripts.js?ver={0}'.format(rhodecode_version_hash))
response.mustcontain('scripts.min.js?ver={0}'.format(rhodecode_version_hash))
def test_index_contains_backend_specific_details(self, backend):
self.log_user()

View file

@ -21,7 +21,7 @@
// register templateContext to pass template variables to JS
var templateContext = {timeago: {}};
</script>
<script type="text/javascript" src="${h.asset('js/scripts.js', ver=c.rhodecode_version_hash)}"></script>
<script type="text/javascript" src="${h.asset('js/scripts.min.js', ver=c.rhodecode_version_hash)}"></script>
</head>
<body>