Improved: Fix issues reported by SonarQube analysis on Github (OFBIZ-12284)

Those should be OK, for instance I see no reasons to do something like that:
window.location.href = window.location.href;
This commit is contained in:
Jacques Le Roux
2021-08-06 11:45:30 +02:00
parent 42ce0f6cfd
commit 13d6bc2913
3 changed files with 3 additions and 5 deletions
@@ -30,14 +30,14 @@ if(security.hasPermission("ENTITY_MAINT", session)) {
<title>ModelInduceFromDB</title>
</head>
<body>
<div class='h3'><b>Put the name of the Datasource in the EntityEngine.xml to induce from:</b></div>
<div class='h3'><strong>Put the name of the Datasource in the EntityEngine.xml to induce from:</b></div>
<form action='' method="post">
<input type='text' class='inputBox' size='40' name='helperName' />
<input type='submit' value='Induce!' />
</form>
It's the datasource name. It doesn't need to be associated with a
delegator, just defined in entityengine.xml.<br/>
<b> Use the browser to view the source and see the entities that were created.</b>
<strong> Use the browser to view the source and see the entities that were created.</b>
</body>
</html>
@@ -102,7 +102,7 @@ var j = 1;
/*********************
JQuery Formalize
*********************/
var FORMALIZE = (function($, window, document, undefined) {
var FORMALIZE = (function($, window, document, notDefined) {
var PLACEHOLDER_SUPPORTED = 'placeholder' in document.createElement('input');
var AUTOFOCUS_SUPPORTED = 'autofocus' in document.createElement('input');
var WEBKIT = 'webkitAppearance' in document.createElement('select').style;
@@ -641,7 +641,6 @@ function lookupFormAjaxRequest(formAction, form) {
},
success : function(result) {
if (result.search(/loginform/) != -1) {
window.location.href = window.location.href;
return;
}
// Here we are removing the spinner.
@@ -678,7 +677,6 @@ function lookupPaginationAjaxRequest(navAction, type) {
},
success : function(result) {
if (result.search(/loginform/) != -1) {
window.location.href = window.location.href;
return;
}
// Here we are removing the spinner.