Sha256: f7781928cb0e6d06ef9e856698df03e0921a1ba56ae2b121e2ccfa0fdf56421e
Contents?: true
Size: 506 Bytes
Versions: 12
Compression:
Stored size: 506 Bytes
Contents
:coffeescript dateControl = $("#page_page_workflow_attributes_published_date") wkControl = $("#page_page_workflow_attributes_status_id") parentControl = $("#page_page_workflow_attributes_published_date").parents(".control-group:first") dateControl.val(dateControl.data("utcDate")).datepicker(dateFormat: "d MM, yy") if wkControl.val() in ["0","1"] parentControl.hide() wkControl.change -> if $(this).val() in ["0","1"] parentControl.hide() else parentControl.show()
Version data entries
12 entries across 12 versions & 1 rubygems