(a)
If an injunction is granted without notice to the person enjoined, the person may apply, upon reasonable notice to the judge who granted the injunction, or to the court in which the action was brought, to dissolve or modify the injunction. The application may be made upon the complaint or the affidavit on which the injunction was granted, or upon affidavit on the part of the person enjoined, with or without the answer. If the application is made upon affidavits on the part of the person enjoined, but not otherwise, the person against whom the application is made may oppose the application by affidavits or other evidence in addition
to that on which the injunction was granted.
(b)
In all actions in which an injunction or restraining order has been or may be granted or applied for, to prevent the diversion, pending the litigation, of water used, or to be used, for irrigation or domestic purposes only, if it is made to appear to the court that great damage will be suffered by the person enjoined, in case the injunction is continued, and that the person in whose behalf it issued can be fully compensated for any damages suffered by reason of the continuance of the acts enjoined during the pendency of the litigation, the court in its discretion, may dissolve or modify the injunction. The dissolution or modification shall be subject to the person enjoined giving a bond in such amount as may be fixed by the court or judge, conditioned that the enjoined person will pay all damages which the person in whose behalf the injunction issued may suffer by reason of the continuance,
during the litigation, of the acts complained of. Upon the trial the amount of the damages must be ascertained, and in case judgment is rendered for the person in whose behalf the injunction was granted, the amount fixed as damages must be included in the judgment, together with reasonable attorney’s fees. In any proceedings to enforce the liability on the bond, the amount of the damages as fixed in the judgment is conclusive.