Fix a bug in the getCookie function

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8526 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
taggon 2011-06-21 12:53:10 +00:00
parent 4c9ce4db07
commit b215fb8e85
3 changed files with 6 additions and 6 deletions

View file

@ -1187,7 +1187,7 @@ function setCookie(name, value, expire, path) {
}
function getCookie(name) {
var match = document.cookie.match(new RegExp(name+'=(.*?);'));
var match = document.cookie.match(new RegExp(name+'=(.*?)(?:;|$)'));
if(match) return unescape(match[1]);
}
@ -1263,7 +1263,7 @@ jQuery(function($){
if(!name) name = '_xe_popup_'+Math.floor(Math.random()*1000);
win = window.open(href, name, 'left=10,top=10,width=10,hegiht=10,resizable=no,scrollbars=no,toolbars=no');
win = window.open(href, name, 'left=10,top=10,width=10,height=10,resizable=no,scrollbars=no,toolbars=no');
if(win) win.focus();
// cancel default action