I have encountered a problem in NXT-List/Forms with FF 4.0: Duplicate Record fails.
The "insert as new" button does not work any more. In worst case the changed content will overwritten.
Does anyone have the same effect?
In
Code: Select all
/includes/nxt/scripts/form.js
Code: Select all
function nxt_form_insertasnew(obj, var_name) {
var frm = obj.form;
if (is.ie && frm.action == '') {
var action = window.location.href
} else {
var action = frm.action.toString();
}
parts = action.split("?");
var qs = new QueryString(parts[1]); var new_qs = [];
var re = new RegExp('^'+var_name, 'g');
Array_each(qs.keys, function(key, i) {
if (! key.match(re)) {
Array_push(new_qs, key+'='+qs.values[i]);
}
});
var new_part = new_qs.join('&');
action = parts[0];
if (new_part != '')
action += '?' + new_part;
frm.action = action;
return true;
}