Merge pull request #420 from marktaiwan/inline-expanding

Inline expanding: proper data assignment.
This commit is contained in:
Fredrick Brennan 2015-03-08 13:43:22 +08:00
commit 45bb8f0920

View File

@ -115,7 +115,7 @@ $(document).ready(function(){
if (!$(this).data('expanded')) {
if (~this.parentNode.className.indexOf('multifile'))
$(this).data('width') = this.parentNode.style.width;
$(this).data('width', this.parentNode.style.width);
this.parentNode.removeAttribute('style');
$(this).data('expanded', 'true');