Upon the grant of a temporary restraining order or an order fixing a time for hearing upon an application for a temporary injunction, the party to whom the same is granted shall file his petition therefor, together with the order of the judge, with the clerk of the proper court; and, if such orders do not pertain to a pending suit in said court, the cause shall be entered on the docket of the court in its regular order in the name of the party applying for the writ as plaintiff and of the opposite party as defendant.
Tex. R. Civ. P. 685