Sha256: bb82a66879e09f2839463e578d518414787760c2628f0675c2ccddaaba7c497d

Contents?: true

Size: 642 Bytes

Versions: 6

Compression:

Stored size: 642 Bytes

Contents

$(document).ready(function() {
  if (page.controller() == 'business_processes' && (page.action() == 'new' || page.action() == 'edit' || page.action() == 'create' || page.action() == 'update')) {
    $('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

6 entries across 6 versions & 1 rubygems

Version Path
authz-0.0.5 app/assets/javascripts/authz/business_processes.js
authz-0.0.4 app/assets/javascripts/authz/business_processes.js
authz-0.0.3 app/assets/javascripts/authz/business_processes.js
authz-0.0.2 app/assets/javascripts/authz/business_processes.js
authz-0.0.1 app/assets/javascripts/authz/business_processes.js
authz-0.0.1.alpha5 app/assets/javascripts/authz/business_processes.js