Sha256: 8ab24659c6cbace0d4157a77c2804a1b11358be739383520495f027098125e4c

Contents?: true

Size: 584 Bytes

Versions: 3

Compression:

Stored size: 584 Bytes

Contents

$(document).ready(function() {
  if (page.controller() == 'business_processes' && (page.action() == 'new' || page.action() == 'edit')) {
    $('form').validate()

    $('#business_process_name').rules('add',{
      messages: {
        remote: 'This process name already exists'
      },
      remote: {
        url: $('#business_process_name').data('validation-path'),
        type: 'get'
      }
    })

    $('#business_process_role_ids').multiSelect(window.quicksearchConfig.init)
    $('#business_process_controller_action_ids').multiSelect(window.quicksearchConfig.init)

  }
})

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
authz-0.0.1.alpha4 app/assets/javascripts/authz/business_processes.js
authz-0.0.1.alpha3 app/assets/javascripts/authz/business_processes.js
authz-0.0.1.alpha2 app/assets/javascripts/authz/business_processes.js