(a) Any person who violates an ordinance of the city and flees from the jurisdiction thereof may be apprehended and arrested, whenever found in the state, and the warrants of the judge of the municipal court shall be sufficient authority for such person's return and trial upon the charge resting against such person. Any person who escapes after trial and conviction may be apprehended or arrested whenever found in this state, and the warrant of the judge of the municipal court shall be sufficient authority for the person's arrest and return. (b) The city commission may provide for the city a safe and suitable jail for the keeping and detention of inmates and of persons charged with a violation of the ordinances of the city before or after conviction, and may appoint a person or persons to operate such jail.