Skip to content

Commit

Permalink
fix for multiple wideareas on a single page
Browse files Browse the repository at this point in the history
You need to remove the class "widearea-fullscreened" from the targeted textarea on closing the full screen text area in order to allow for multiple "wideareas" on a single page.
  • Loading branch information
beastburn committed May 22, 2013
1 parent 6d22a0c commit cc13a1b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion widearea.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,9 @@

//set fullscreen textarea to small one
smallTextArea.value = fullscreenTextArea.value;

//reset class for targeted text
smallTextArea.className = smallTextArea.classname.replace("widearea-fullscreened ", "");

//and then remove the overlay layer
overlayLayer.parentNode.removeChild(overlayLayer);
Expand Down Expand Up @@ -251,4 +254,4 @@

exports.wideArea = wideArea;
return wideArea;
}));
}));

0 comments on commit cc13a1b

Please sign in to comment.