Author: ralfbecker
New Revision: 55683
URL: http://svn.stylite.de/viewvc/egroupware?rev=55683&view=rev
Log:
remove ancient CreateObject(‘phpgwapi.javascript’), replace it with egw_framework::validate_file, which is availabe from 1.8 on I believe
Modified:
trunk/importexport/inc/class.importexport_export_ui.inc.php
— trunk/importexport/inc/class.importexport_export_ui.inc.php (original)
+++ trunk/importexport/inc/class.importexport_export_ui.inc.php Fri Apr 8 10:58:23 2016
@@ -22,7 +22,6 @@
‘download’ => true,
);
-
private $js;
private $user;
/**
@@ -33,9 +32,8 @@
private $export_plugins;
public function __construct() {
-
$this->js = $GLOBALS['egw']->js = is_object($GLOBALS['egw']->js) ? $GLOBALS['egw']->js : CreateObject('phpgwapi.javascript');
-
$this->js->validate_file('.','export_dialog','importexport');
-
$this->js->validate_file('.','importexport','importexport');
-
egw_framework::validate_file('.','export_dialog','importexport');
-
egw_framework::validate_file('.','importexport','importexport');
$this->user = $GLOBALS['egw_info']['user']['user_id'];
$this->export_plugins = importexport_helper_functions::get_plugins('all','export');
$GLOBALS['egw_info']['flags']['include_xajax'] = true;
@@ -123,7 +121,6 @@
$sel_options[‘plugin’] = $plugins;
*/
}
-
//$this->js->set_onload("set_style_by_class('tr','select_definition','display','none');");
}
else {
$readonlys['plugin'] = true;
@@ -183,7 +180,7 @@
if($definition && is_array($definition->plugin_options) && $definition->plugin_options[‘selection’] && !$content[‘selection_passed’]) {
$_selection = $definition->plugin_options[‘selection’];
}
@@ -387,7 +384,7 @@
);
$preview = "<div class='header'>".lang('Preview') . "<span class='count'>".(int)$record_count."</span></div>".$preview;
@@ -456,7 +453,7 @@
$description = $plugin_object->get_description();
}
$_response->addAssign(‘importexport-export_dialog_plugin_description’,‘innerHTML’,$description);
-
unset ($plugin_object);
}
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs