mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 11:44:10 +09:00
issue 6 : fixed an error occurred when you click a page element that has no class name.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8429 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
ff38c9abde
commit
c39eab9d05
3 changed files with 82 additions and 62 deletions
|
|
@ -935,7 +935,8 @@ jQuery(function($){
|
|||
if(!$target.length) return;
|
||||
|
||||
// 객체의 className값을 구함
|
||||
var match = $target.attr('class').match(new RegExp('(?:^| )((document|comment|member)_([1-9]\\d*))(?: |$)',''));
|
||||
var cls = $target.attr('class'), match;
|
||||
if(cls) match = cls.match(new RegExp('(?:^| )((document|comment|member)_([1-9]\\d*))(?: |$)',''));
|
||||
if(!match) return;
|
||||
|
||||
var action = 'get'+ucfirst(match[2])+'Menu';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue