Browse Source

Fixes

pull/3/head
M@d D3n 5 years ago
parent
commit
c4ee1ef5b3
  1. 6
      admin/templates/browser/browser_2frames.tpl
  2. 4
      admin/templates/js/main.js
  3. 2
      admin/templates/main.tpl
  4. 8
      lib/scripts/uploader/browserplus.js

6
admin/templates/browser/browser_2frames.tpl

@ -22,7 +22,7 @@
<!-- JS files -->
{include file="../scripts.tpl"}
<script type="text/javascript" src="http://bp.yahooapis.com/2.4.21/browserplus-min.js"></script>
<script type="text/javascript" src="{$ABS_PATH}lib/scripts/uploader/browserplus.js"></script>
<script type="text/javascript" src="{$ABS_PATH}lib/scripts/uploader/plupload.full.min.js"></script>
<script type="text/javascript" src="{$ABS_PATH}lib/scripts/uploader/jquery.plupload.queue.js"></script>
<script type="text/javascript" src="{$ABS_PATH}lib/scripts/uploader/i18n/{$smarty.session.admin_language}.js"></script>
@ -35,6 +35,8 @@
var ave_theme = "{$smarty.const.DEFAULT_THEME_FOLDER}";
var ave_admintpl = "{$tpl_dir}";
$sess = '{$sess}';
$(document).ready(function(){ldelim}
$('.openDialog').prop(
@ -215,6 +217,8 @@ function NewFolder() {ldelim}
</script>
<script type="text/javascript" src="{$ABS_PATH}admin/lang/{$smarty.session.admin_language}/scripts.js"></script>
<!-- Footer -->
<div id="footer">
<div class="wrapper">

4
admin/templates/js/main.js

@ -66,7 +66,7 @@ function openLinkWindow(target, doc, document_alias) {
if (typeof scrollbar == 'undefined') var scrollbar = 1;
var left = (screen.width - width) / 2;
var top = (screen.height - height) / 2;
window.open('index.php?doc=' + doc + '&target=' + target + '&document_alias=' + document_alias + '&do=docs&action=showsimple&cp={$sess}&pop=1', 'pop', 'left=' + left + ',top=' + top + ',width=' + width + ',height=' + height + ',scrollbars=' + scrollbar + ',resizable=1');
window.open('index.php?doc=' + doc + '&target=' + target + '&document_alias=' + document_alias + '&do=docs&action=showsimple&cp=' + sess + '&pop=1', 'pop', 'left=' + left + ',top=' + top + ',width=' + width + ',height=' + height + ',scrollbars=' + scrollbar + ',resizable=1');
}
function openFileWindow(target, id, document_alias) {
@ -76,7 +76,7 @@ function openFileWindow(target, id, document_alias) {
if (typeof scrollbar == 'undefined') var scrollbar = 1;
var left = (screen.width - width) / 2;
var top = (screen.height - height) / 2;
window.open('index.php?do=browser&id=' + id + '&type=file&target=navi&cp={$sess}', 'pop', 'left=' + left + ',top=' + top + ',width=' + width + ',height=' + height + ',scrollbars=' + scrollbar + ',resizable=1');
window.open('index.php?do=browser&id=' + id + '&type=file&target=navi&cp=' + sess, 'pop', 'left=' + left + ',top=' + top + ',width=' + width + ',height=' + height + ',scrollbars=' + scrollbar + ',resizable=1');
}
// Функция-плагин для включения tipsy сразу для всех классов внутри элемента

2
admin/templates/main.tpl

@ -33,6 +33,8 @@
var ave_path = "{$ABS_PATH}";
var ave_theme = "{$smarty.const.DEFAULT_THEME_FOLDER}";
var ave_admintpl = "{$tpl_dir}";
var sess = '{$sess}';
</script>
<script type="text/javascript" language="JavaScript">

8
lib/scripts/uploader/browserplus.js

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save