Skip to content

Commit

Permalink
Webimporter does not import description
Browse files Browse the repository at this point in the history
Description field is ignored during import.

Fixes #36
  • Loading branch information
jeroenrnl committed Jan 19, 2013
1 parent 0796029 commit d0ea5ed
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion php/js/xml.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ var XML=function() {
if(form.tagName=="FORM") {
inputs=form.getElementsByTagName("input");
selects=form.getElementsByTagName("select");
textareas=form.getElementsByTagName("textarea");
if(url.indexOf("?")) {
url += "&";
} else {
Expand All @@ -124,7 +125,12 @@ var XML=function() {
}
for(i=0; i<selects.length; i++) {
if(selects[i].value) {
url += selects[i].name + "=" + selects[i].value + "&";
url += escape(selects[i].name) + "=" + escape(selects[i].value) + "&";
}
}
for(i=0; i<textareas.length; i++) {
if(textareas[i].value) {
url += escape(textareas[i].name) + "=" + escape(textareas[i].value) + "&";
}
}
var http=new XMLHttpRequest();
Expand Down

0 comments on commit d0ea5ed

Please sign in to comment.