move js files from js/pandora to js, fixes #1366
This commit is contained in:
parent
b5eda32bbd
commit
a9b7738aa8
104 changed files with 7 additions and 2 deletions
|
@ -182,10 +182,15 @@ def update_static():
|
||||||
js = []
|
js = []
|
||||||
pandora_js = os.path.join(settings.STATIC_ROOT, 'js/pandora.min.js')
|
pandora_js = os.path.join(settings.STATIC_ROOT, 'js/pandora.min.js')
|
||||||
pandora_json = os.path.join(settings.STATIC_ROOT, 'json/pandora.json')
|
pandora_json = os.path.join(settings.STATIC_ROOT, 'json/pandora.json')
|
||||||
for root, folders, files in os.walk(os.path.join(settings.STATIC_ROOT, 'js/pandora')):
|
for root, folders, files in os.walk(os.path.join(settings.STATIC_ROOT, 'js')):
|
||||||
for f in files:
|
for f in files:
|
||||||
if f.endswith('.js') and len(f.split('.')) == 2:
|
if not f in (
|
||||||
|
'pandora.js', 'pandora.min.js'
|
||||||
|
) and f.endswith('.js') and len(f.split('.')) == 2:
|
||||||
f = os.path.join(root, f)
|
f = os.path.join(root, f)
|
||||||
|
#ignore old embed js file
|
||||||
|
if 'js/embed/' in f:
|
||||||
|
continue
|
||||||
fsite = f.replace('.js', '.%s.js' % settings.CONFIG['site']['id'])
|
fsite = f.replace('.js', '.%s.js' % settings.CONFIG['site']['id'])
|
||||||
if os.path.exists(fsite):
|
if os.path.exists(fsite):
|
||||||
f = fsite
|
f = fsite
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue