Fixing style errors.

This commit is contained in:
stickler-ci 2020-09-14 09:01:11 +00:00
parent 92aab677e9
commit ad84aaacc6
2 changed files with 47 additions and 52 deletions

View File

@ -904,17 +904,15 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action))
$objcanvas->assign_values($action, $object->id, $object->ref); // Set value for templates $objcanvas->assign_values($action, $object->id, $object->ref); // Set value for templates
$objcanvas->display_canvas($action); // Show template $objcanvas->display_canvas($action); // Show template
} else { } else {
// ----------------------------------------- // -----------------------------------------
// When used in standard mode // When used in standard mode
// ----------------------------------------- // -----------------------------------------
if ($action == 'create' && $usercancreate) if ($action == 'create' && $usercancreate)
{ {
//WYSIWYG Editor //WYSIWYG Editor
require_once DOL_DOCUMENT_ROOT.'/core/class/doleditor.class.php'; require_once DOL_DOCUMENT_ROOT.'/core/class/doleditor.class.php';
print '<script type="text/javascript">'; print '<script type="text/javascript">';
print '$(document).ready(function () { print '$(document).ready(function () {
$("#selectcountry_id").change(function() { $("#selectcountry_id").change(function() {
document.formprod.action.value="create"; document.formprod.action.value="create";
@ -1365,9 +1363,6 @@ print '<script type="text/javascript">';
print '</form>'; print '</form>';
} elseif ($object->id > 0) { } elseif ($object->id > 0) {
/* /*
* Product card * Product card
*/ */
@ -1377,7 +1372,7 @@ print '<script type="text/javascript">';
//WYSIWYG Editor //WYSIWYG Editor
require_once DOL_DOCUMENT_ROOT.'/core/class/doleditor.class.php'; require_once DOL_DOCUMENT_ROOT.'/core/class/doleditor.class.php';
print '<script type="text/javascript">'; print '<script type="text/javascript">';
print '$(document).ready(function () { print '$(document).ready(function () {
$("#selectcountry_id").change(function() { $("#selectcountry_id").change(function() {
document.formprod.action.value="edit"; document.formprod.action.value="edit";