Sha256: e2278e928bc12da35cdcec3923a6dec499ebfe3fa58ef0d1d0ba6181218b4147
Contents?: true
Size: 530 Bytes
Versions: 153
Compression:
Stored size: 530 Bytes
Contents
Spree.Views.Zones.Form = Backbone.View.extend({ events: { 'click [name="zone[kind]"]': 'render' }, render: function() { var kind = this.$('[name="zone[kind]"]:checked').val() || 'state'; this.$('[name="zone[kind]"]').val([kind]); $('#state_members').toggleClass('hidden', kind !== 'state'); $('#state_members :input').prop('disabled', kind !== 'state'); $('#country_members').toggleClass('hidden', kind !== 'country'); $('#country_members :input').prop('disabled', kind !== 'country'); } })
Version data entries
153 entries across 153 versions & 2 rubygems