Index: lams_central/web/qb/search.jsp
===================================================================
diff -u -r9f4d4f19dc70ef350ebab8e6aa89cb05e1c78c04 -r9091ed8c9bae9a48f88622c0c5031af2a39772dc
--- lams_central/web/qb/search.jsp (.../search.jsp) (revision 9f4d4f19dc70ef350ebab8e6aa89cb05e1c78c04)
+++ lams_central/web/qb/search.jsp (.../search.jsp) (revision 9091ed8c9bae9a48f88622c0c5031af2a39772dc)
@@ -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