The mayor and mayor pro tem of said city shall have, in addition to the jurisdiction of justices of the peace over all, the territory embraced in their jurisdiction or municipal offices. Whenever it shall appear that an offense against the laws of the state has been committed within the limits of said city's police jurisdiction, the mayor or mayor pro tem, as the case may be, after investigation, in his discretion may commit the offender or offenders to jail, or bail, to answer to the court having jurisdiction of the offense.