This commit is contained in:
Chris 2015-03-11 23:52:27 -06:00
parent 41bf9486e4
commit 4b2ecee415

View file

@ -189,8 +189,12 @@ var commitHandler = function() {
/******************************************************************************/
var editStartHandler = function() {
uDom('#diff .right textarea').val(rulesFromHTML('#diff .right li'));
var parent = uDom(this).ancestors('#diff');
// If we're already editing, don't reset
if ( parent.hasClassName('edit') ) {
return;
}
uDom('#diff .right textarea').val(rulesFromHTML('#diff .right li'));
parent.toggleClass('edit', true);
};