Initialize datepickers when there are no campaigns.

This commit is contained in:
Brian Simpson
2014-04-20 08:42:35 -04:00
parent 8c2e7a7e6c
commit b061209aaf

View File

@@ -10,6 +10,10 @@ r.sponsored = {
this.inventory = inventory_by_sr
if (isEmpty) {
this.fill_campaign_editor()
init_startdate()
init_enddate()
$("#campaign").find("button[name=create]").show().end()
.find("button[name=save]").hide().end()
}
this.userIsSponsor = userIsSponsor
},