An injunction cannot be allowed after the defendant has answered, unless upon notice, or upon an order to show cause; but in such case the defendant may be restrained until the decision of the Court or Judge granting or refusing the injunction.
Ca. Civ. Proc. Code § 528