Skip to content

Commit

Permalink
fixed window.location.pathname to href
Browse files Browse the repository at this point in the history
  • Loading branch information
pilz committed May 6, 2010
1 parent f1f0cf0 commit 0bf711e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
function close_sticky_message(mid) {
var path = window.location.pathname;
var path = window.location.href;
if (path.indexOf("portal_factory") != -1) {
path = path.split('/portal_factory')[0];
}
Expand All @@ -15,7 +15,7 @@ function close_sticky_message(mid) {
message_id: mid,
},
error: function (XMLHttpRequest, textStatus, errorThrown) {
alert('Error: could not permanently remove the messsage. Please try again later.');
alert('Error: could not permanently remove the messsage. Please try again later.'+path);
jQuery("dt[mid="+mid+"]").parent().fadeOut(500);
},
success: function() {
Expand Down

0 comments on commit 0bf711e

Please sign in to comment.