forked from 0x2620/pandora
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
pandora/app
static/js
UI.jsURL.jsaccount.jsallItems.jsannotationDialog.jsapiDialog.jsappPanel.jsautovalidate.jsbackButton.jsbrowser.jschunkupload.jsclipList.jsclipsView.jscontactForm.jscontentPanel.jsdeleteDocumentDialog.jsdeleteItemDialog.jsdeleteListDialog.jsdocumentsDialog.jsdocumentsView.jseditPanel.jseditor.jsembedDocumentDialog.jsembedError.jsembedList.jsembedNavigation.jsembedPanel.jsembedPlayer.jsembedTimeline.jsembedVideoDialog.jserrorDialog.jseventsDialog.jsfilter.jsfilterDialog.jsfilterForm.jsfindElement.jsfolderBrowser.jsfolderBrowserBar.jsfolderBrowserList.jsfolderList.jsfolders.jshelpDialog.jshome.0xdb.jshome.indiancinema.jshome.jshome.padma.jshomePage.jsiconDialog.jsidDialog.jsimportAnnotations.jsinfo.jsinfoView.0xdb.jsinfoView.indiancinema.jsinfoView.jsinfoView.padma.jsinsertEmbedDialog.jsitem.jsitemClips.jsleftPanel.jslist.jslistDialog.jslogsDialog.jsmainMenu.jsmainPanel.jsmakeListPrivateDialog.jsmediaView.jsmetadataDialog.jsnamesDialog.jsnavigationView.jsnews.jsonloadDialog.jsplacesDialog.jsplayer.jspostersView.jspreferencesDialog.jsprintView.jspublicLists.jsresetUIDialog.jsrightPanel.jssectionButtons.jssectionSelect.jssectionbar.jssequencesDialog.jssiteDialog.0xdb.jssiteDialog.jssortElement.jssortMenu.jsstatisticsDialog.jsstatusbar.jstests.jstextPanel.jstimeline.jstitlesDialog.jstoolbar.jstv.jsuploadDialog.jsuploadDocumentDialog.jsuploadPDFDialog.jsusersDialog.js
|
@ -182,10 +182,15 @@ def update_static():
|
|||
js = []
|
||||
pandora_js = os.path.join(settings.STATIC_ROOT, 'js/pandora.min.js')
|
||||
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:
|
||||
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)
|
||||
#ignore old embed js file
|
||||
if 'js/embed/' in f:
|
||||
continue
|
||||
fsite = f.replace('.js', '.%s.js' % settings.CONFIG['site']['id'])
|
||||
if os.path.exists(fsite):
|
||||
f = fsite
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue