Sha256: 34d2abb58f3c60fd236c620520d93c70916a46ece5c633e9b4956de06cd0668e

Contents?: true

Size: 1004 Bytes

Versions: 8

Compression:

Stored size: 1004 Bytes

Contents

// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
//
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// compiled file. JavaScript code in this file should be added after the last require_* statement.
//
// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
// about supported directives.
//
//= require jquery3
//= require jquery_ujs
//= require_tree .

$(function(){
    // bind change event to select
    $('#dynamic_select').on('change', function () {
        var url = $(this).val(); // get selected value
        if (url) { // require a URL
            window.location = url; // redirect
        }
        return false;
    });
});

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
cd2_catton_cms-1.1.35 spec/dummy/app/assets/javascripts/application.js
cd2_catton_cms-1.1.34 spec/dummy/app/assets/javascripts/application.js
cd2_catton_cms-1.1.33 spec/dummy/app/assets/javascripts/application.js
cd2_catton_cms-1.1.32 spec/dummy/app/assets/javascripts/application.js
cd2_catton_cms-1.1.31 spec/dummy/app/assets/javascripts/application.js
cd2_catton_cms-1.1.30 spec/dummy/app/assets/javascripts/application.js
cd2_catton_cms-1.1.20 spec/dummy/app/assets/javascripts/application.js
cd2_catton_cms-1.1.10 spec/dummy/app/assets/javascripts/application.js