Index: lams_central/web/qb/search.jsp
===================================================================
diff -u -re8a7110708b15579af2c6b31ac52a6da427fef6d -r33aeeae9d9764b3411e04a48ee165e526c240f44
--- lams_central/web/qb/search.jsp (.../search.jsp) (revision e8a7110708b15579af2c6b31ac52a6da427fef6d)
+++ lams_central/web/qb/search.jsp (.../search.jsp) (revision 33aeeae9d9764b3411e04a48ee165e526c240f44)
@@ -173,22 +173,31 @@
}
//disabling the button
$(this).attr("disabled", "disabled");
-
- $("#itemArea").load(
- "${param.returnUrl}",
- {
+
+ $.ajax({
+ url: "${param.returnUrl}",
+ data: {
qbQuestionUid: $("#selected-question-uid").val()
},
- function() {
- //invoke refreshThickbox() only in case parent page has this method
- if (typeof refreshThickbox === "function") {
- refreshThickbox();
- }
+ type: "POST",
+ success: function(response, status, xhr) {
+ if (response.isDuplicated) {
+ //show not successfull notification
+ $.growlUI(' ');
+
+ } else {
+ $("#itemArea").html(response);
- //show successfull notification
- $.growlUI(' ');
+ //invoke refreshThickbox() only in case parent page has this method
+ if (typeof refreshThickbox === "function") {
+ refreshThickbox();
+ }
+
+ //show successfull notification
+ $.growlUI(' ');
+ }
}
- );
+ });
});
//handler for "Advanced search" button