I'm glad you realized that you did something silly. Now do not beat yourself up too much for it...
I think that when she pees you need to completely ignore it. If you pet her while she is peeing or after she pees it only reinforces the behavior. She may be lead to believe that peeing is ok or that it actually is a good thing to do because you give her so much affection while and after she has done it. I even encourage you to kindly say 'no' while she is peeing and take her outside immediately.
I'm sure others will chime in and give better advice but I have usually seen threads about submissive peeing being cured by ignoring and stopping them from peeing to take them outside.