mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-11 09:31:01 +01:00
Fixes #995
This commit is contained in:
parent
41bf9486e4
commit
4b2ecee415
1 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue