Sha256: e41f85e0121fa0dac8bbafb74c719c05fb3e6f416fbf1279cb789a8b56ec5a0a

Contents?: true

Size: 896 Bytes

Versions: 3

Compression:

Stored size: 896 Bytes

Contents

$(document).ready(function() {
  if (page.controller() == 'controller_actions' && page.action() == 'new') {
    $('form').validate()
    $('#controller_action_controller').rules('add',{
      messages: {
        remote: 'This controller name does not exist'
      },
      remote: {
        url: $('#controller_action_controller').data('validation-path'),
        type: 'get'
      }
    })
    $('#controller_action_action').rules('add',{
      messages: {
        remote: 'This action name does not exist for this controller'
      },
      remote: {
        url: $('#controller_action_action').data('validation-path'),
        type: 'get',
        data: {
          controller_name: function(){
            return $('#controller_action_controller').val()
          }
        }
      }
    })

    $('#controller_action_business_process_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/controller_actions.js
authz-0.0.1.alpha3 app/assets/javascripts/authz/controller_actions.js
authz-0.0.1.alpha2 app/assets/javascripts/authz/controller_actions.js