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:
taggon 2011-06-02 01:36:44 +00:00
parent ff38c9abde
commit c39eab9d05
3 changed files with 82 additions and 62 deletions

View file

@ -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';