Skip to content
Permalink
Browse files

javascript compatibility for old browsers (worldmap textbox)

  • Loading branch information
vpithart authored and LarsMichelsen committed Dec 4, 2019
1 parent b91ab57 commit 4dc1ad13e676b3168bb93d83057fbc146e390fbc
Showing with 3 additions and 3 deletions.
  1. +2 −2 share/frontend/nagvis-js/js/ajax.js
  2. +1 −1 share/server/core/functions/html.php
@@ -155,8 +155,8 @@ function getFormParams(formId, skipHelperFields) {
return data;

// Get relevant input elements
var aFields = Array.from(oForm.getElementsByTagName('input'))
aFields = Array.prototype.concat(aFields, Array.from(oForm.getElementsByTagName('textarea')));
var aFields = oForm.querySelectorAll('input,textarea');

for (var i = 0, len = aFields.length; i < len; i++) {
// Filter helper fields (if told to do so)
if (skipHelperFields && aFields[i].name.charAt(0) === '_')
@@ -279,7 +279,7 @@ function textarea($name, $default = '', $class = '', $style = '') {
<script>
let script = document.createElement("script");
script.src = "js/ExtNicEdit.js"
document.head.append(script);
document.head.appendChild(script);
script.onload = function() {
new nicEditor({fullPanel : true}).panelInstance("textarea_'.$name.'")
};

0 comments on commit 4dc1ad1

Please sign in to comment.
You can’t perform that action at this time.