AntonLV 12 лет назад
Родитель
Сommit
88d58799c4
3 измененных файлов с 6 добавлено и 45 удалено
  1. 0 37
      modules/boonex/developer/js/main.js
  2. 5 8
      modules/boonex/developer/request.php
  3. 1 0
      studio/module.php

+ 0 - 37
modules/boonex/developer/js/main.js

@@ -1,37 +0,0 @@
-function BxDevMain(oOptions) {
-    this._sSystem = oOptions.sSystem;
-    this._sActionsUrl = oOptions.sActionUrl;
-    this._sObjName = oOptions.sObjName == undefined ? 'oDevMain' : oOptions.sObjName;
-    this._sAnimationEffect = oOptions.sAnimationEffect == undefined ? 'slide' : oOptions.sAnimationEffect;
-    this._iAnimationSpeed = oOptions.iAnimationSpeed == undefined ? 'slow' : oOptions.iAnimationSpeed;
-}
-
-BxDevMain.prototype.pgtRecompile = function(sLanguage) {
-    var $this = this;
-    var oDate = new Date();
-    var oParams = {
-        _t:oDate.getTime()
-    };
-
-    if(sTypeParams)
-        oParams['params'] = sTypeParams;
-
-    if($('#articles-filter-chb:checked').length > 0 && $('#articles-filter-txt').val().length > 0)
-        oParams['filter_value'] = $('#articles-filter-txt').val();
-
-    var sLoadingId = '#articles-' + sType + '-loading';
-    $(sLoadingId).bx_loading();
-
-    $.post(
-        this._sActionsUrl + 'act_get_articles/' + (sType ? sType + '/' : '') + iStart + '/' + iPerPage + '/',
-        oParams,
-        function(sData) {
-            $(sLoadingId).bx_loading();
-
-            $('.arl-view #arl-content-' + sType).bx_anim('hide', $this._sAnimationEffect, $this._iAnimationSpeed, function() {
-                $(this).replaceWith(sData);
-            });
-        },
-        'html'
-    );
-};

+ 5 - 8
modules/boonex/developer/request.php

@@ -9,14 +9,11 @@
  * @{
  */
 
-require_once( BX_DIRECTORY_PATH_CLASSES . 'BxDolRequest.php' );
+require_once(BX_DIRECTORY_PATH_INC . "design.inc.php");
 
-if (isset($aRequest[0]) && 0 == strncmp($aRequest[0], 'act_', 4)) {
-    $aRequest[0] = str_replace('act_', '', $aRequest[0]);
-    // TODO: is header with 'utf8' encoding needed here ?
-    echo BxDolRequest::processAsAction($aModule, $aRequest);
-} else {
-    BxDolRequest::processAsAction($aModule, $aRequest);
-}
+bx_import('BxDolLanguages');
+bx_import('BxDolRequest');
+
+BxDolRequest::processAsAction($GLOBALS['aModule'], $GLOBALS['aRequest']);
 
 /** @} */

+ 1 - 0
studio/module.php

@@ -11,6 +11,7 @@
 require_once('./../inc/header.inc.php');
 require_once(BX_DIRECTORY_PATH_INC . 'design.inc.php');
 require_once(BX_DIRECTORY_PATH_PLUGINS . 'Services_JSON.php');
+require_once(BX_DOL_DIR_STUDIO_INC . 'utils.inc.php');
 
 bx_import('BxDolLanguages');