Skip to content

Commit

Permalink
temporary fix for "upload from server" dialog
Browse files Browse the repository at this point in the history
Since extjs has been dropped and we are not yet focused on Deploy
cleaning and rewriting, we just restored the ExtJS dependencies within
the plugin.

I've also just adapt some dialog javascript calls according to the new
jQuery UI dialog widget used in GLPI.
  • Loading branch information
kiniou committed Mar 12, 2014
1 parent 8a9d752 commit 7877c23
Show file tree
Hide file tree
Showing 393 changed files with 100,871 additions and 3 deletions.
6 changes: 3 additions & 3 deletions inc/deployfile.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ static function displayAjaxValues($config, $request_data, $rand, $mode) {
echo "<input type='text' name='filename' id='server_filename$rand'".
" style='width:120px;float:left' />";
echo "<input type='button' class='submit' value='".__("Choose", 'fusioninventory').
"' onclick='fileModal$rand.show();' style='width:50px' />";
"' onclick='fileModal$rand.dialog(\"open\");' />";
Ajax::createModalWindow("fileModal$rand",
$CFG_GLPI['root_doc']."/plugins/fusioninventory/ajax/deployfilemodal.php",
array('title' => __('Select the file on server', 'fusioninventory'),
Expand Down Expand Up @@ -444,7 +444,7 @@ static function showServerFileTree($params) {

$rand = $params['rand'];

echo "<script type='javascript'>";
echo "<script type='text/javascript'>";
echo "var Tree_Category_Loader$rand = new Ext.tree.TreeLoader({
dataUrl:'".$CFG_GLPI["root_doc"]."/plugins/fusioninventory/ajax/serverfilestreesons.php'
});";
Expand All @@ -468,7 +468,7 @@ static function showServerFileTree($params) {
if (node.leaf == true) {
console.log('server_filename$rand');
Ext.get('server_filename$rand').dom.value = node.id;
fileModal$rand.hide();
fileModal$rand.dialog('close');
}
}
}
Expand Down
Loading

0 comments on commit 7877c23

Please sign in to comment.