'."\n";
+
+ // Parameters for edit in place
+ if (! empty($GLOBALS['object']))
+ {
+ $out.='
'.$GLOBALS['object']->element.'
'."\n";
+ $out.='
'.$GLOBALS['object']->table_element.'
'."\n";
+ $out.='
'.$GLOBALS['object']->id.'
'."\n";
+ }
return $out;
}
diff --git a/htdocs/core/tpl/ajaxeditinplace.tpl.php b/htdocs/core/tpl/ajaxeditinplace.tpl.php
deleted file mode 100644
index 5502c4508d5..00000000000
--- a/htdocs/core/tpl/ajaxeditinplace.tpl.php
+++ /dev/null
@@ -1,93 +0,0 @@
-
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see
.
- *
- */
-?>
-
-
-
-
\ No newline at end of file
diff --git a/htdocs/fichinter/fiche.php b/htdocs/fichinter/fiche.php
index 786691cd36c..37622508641 100644
--- a/htdocs/fichinter/fiche.php
+++ b/htdocs/fichinter/fiche.php
@@ -785,11 +785,6 @@ else if ($id > 0 || ! empty($ref))
$ret=$form->form_confirm($_SERVER["PHP_SELF"].'?id='.$object->id.'&line_id='.$_GET["line_id"], $langs->trans('DeleteInterventionLine'), $langs->trans('ConfirmDeleteInterventionLine'), 'confirm_deleteline','',0,1);
if ($ret == 'html') print '
';
}
-
- if (! empty($conf->global->MAIN_USE_JQUERY_JEDITABLE) && $user->rights->ficheinter->creer)
- {
- include(DOL_DOCUMENT_ROOT.'/core/tpl/ajaxeditinplace.tpl.php');
- }
print '
';
diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php
index cd81033134d..e5bc61c25eb 100644
--- a/htdocs/main.inc.php
+++ b/htdocs/main.inc.php
@@ -924,7 +924,19 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs
// jQuery jnotify
if (empty($conf->global->MAIN_DISABLE_JQUERY_JNOTIFY)) print ''."\n";
// jQuery jeditable
- if (! empty($conf->global->MAIN_USE_JQUERY_JEDITABLE)) print ''."\n";
+ if (! empty($conf->global->MAIN_USE_JQUERY_JEDITABLE))
+ {
+ print ''."\n";
+ print ''."\n";
+ print ''."\n";
+ }
// Flot
if (empty($conf->global->MAIN_DISABLE_JQUERY_FLOT))
{