mirror of
https://github.com/Studio-42/elFinder
synced 2026-06-08 12:37:09 +00:00
fix: example html, js
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
|
||||
<!-- Require JS (REQUIRED) -->
|
||||
<!-- Rename "main.default.js" to "main.js" and edit it if you need configure elFInder options or any things -->
|
||||
<script data-main="./main-minimal.default.js" src="//cdnjs.cloudflare.com/ajax/libs/require.js/2.3.5/require.min.js"></script>
|
||||
<script data-main="./main-minimal.default.js" src="//cdnjs.cloudflare.com/ajax/libs/require.js/2.3.7/require.min.js"></script>
|
||||
<script>
|
||||
define('elFinderConfig', {
|
||||
// elFinder options (REQUIRED)
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@
|
||||
|
||||
<!-- Require JS (REQUIRED) -->
|
||||
<!-- Rename "main.default.js" to "main.js" and edit it if you need configure elFInder options or any things -->
|
||||
<script data-main="./main.default.js" src="//cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.min.js"></script>
|
||||
<script data-main="./main.default.js" src="//cdnjs.cloudflare.com/ajax/libs/require.js/2.3.7/require.min.js"></script>
|
||||
<script>
|
||||
define('elFinderConfig', {
|
||||
// elFinder options (REQUIRED)
|
||||
|
||||
@@ -68,19 +68,14 @@
|
||||
alert(error.message);
|
||||
}
|
||||
);
|
||||
},
|
||||
};
|
||||
|
||||
// is IE8 or :? for determine the jQuery version to use (optional)
|
||||
old = (typeof window.addEventListener === 'undefined' && typeof document.getElementsByClassName === 'undefined')
|
||||
||
|
||||
(!window.chrome && !document.unqueID && !window.opera && !window.sidebar && 'WebkitAppearance' in document.documentElement.style && document.body.style && typeof document.body.style.webkitFilter === 'undefined');
|
||||
|
||||
// config of RequireJS (REQUIRED)
|
||||
require.config({
|
||||
baseUrl : 'js',
|
||||
paths : {
|
||||
'jquery' : '//code.jquery.com/jquery-'+jqver+'.min',
|
||||
'jquery-ui': '//code.jquery.com/ui/'+uiver+'/jquery-ui.min.js',
|
||||
'jquery-ui': '//code.jquery.com/ui/'+uiver+'/jquery-ui.min',
|
||||
'elfinder' : 'elfinder-minimal.min'
|
||||
},
|
||||
waitSeconds : 10 // optional
|
||||
|
||||
+3
-3
@@ -113,16 +113,16 @@
|
||||
alert(error.message);
|
||||
}
|
||||
);
|
||||
},
|
||||
};
|
||||
|
||||
// config of RequireJS (REQUIRED)
|
||||
require.config({
|
||||
baseUrl : 'js',
|
||||
paths : {
|
||||
'jquery' : '//code.jquery.com/jquery-'+jqver+'.min',
|
||||
'jquery-ui': '//code.jquery.com/ui/'+uiver+'/jquery-ui.min.js',
|
||||
'jquery-ui': '//code.jquery.com/ui/'+uiver+'/jquery-ui.min',
|
||||
'elfinder' : 'elfinder.min',
|
||||
'encoding-japanese': '//cdn.rawgit.com/polygonplanet/encoding.js/1.0.26/encoding.min'
|
||||
'encoding-japanese': '//cdn.jsdelivr.net/npm/encoding-japanese@2.2.0/encoding.min'
|
||||
},
|
||||
waitSeconds : 10 // optional
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user