bugs 1248577 (incorrect message 'you should define a primary key') and 1253125 (request-URI too large)

This commit is contained in:
Marc Delisle
2005-08-14 19:31:55 +00:00
parent cd75266da0
commit 80aecf6518
5 changed files with 276 additions and 205 deletions

View File

@@ -45,7 +45,11 @@ function confirmLink(theLink, theSqlQuery)
var is_confirmed = confirm(confirmMsg + ' :\n' + theSqlQuery);
if (is_confirmed) {
theLink.href += '&is_js_confirmed=1';
if ( typeof(theLink.href) != 'undefined' ) {
theLink.href += '&is_js_confirmed=1';
} else if ( typeof(theLink.form) != 'undefined' ) {
theLink.form.action += '?is_js_confirmed=1';
}
}
return is_confirmed;