mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-12 07:11:42 +09:00
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:
parent
4c9ce4db07
commit
b215fb8e85
3 changed files with 6 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue