If at such election the majority of the votes are in favor of the ordinance and the making of the proposed grant, the same shall thereupon become effective; but if a majority of the votes so cast shall be against the passage of the resolution, bylaw, or ordinance and against the making of the grant, the bylaw, resolution, or ordinance shall not become effective, nor shall it confer any rights, powers, or privileges of any kind, and it shall be the duty of the board of commissioners, after the result of the election is determined, to pass a resolution or ordinance to that effect.