Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for select2 in $("select.select2-package[name^='component_bundle']")
- product = select2.getAttribute('data-product')
- $.get "/bundles/fetch_components.json?product=#{product}", (resp) ->
- $(product).val(resp)
- $.ajax
- url: "/bundles/fetch_components.json?product=#{product}"
- dataType: 'application/json'
- cache: true
- ifModified: false
- async: true
- success: (resp) ->
- console.log(resp.responseText)
- $("#component_bundle_#{product}").val(resp.responseText)
- error: (resp) ->
- console.log(resp)
- portal.showErrorDialog("ERROR", resp.responseText)
Add Comment
Please, Sign In to add comment