fixed template change script

This commit is contained in:
Harry Bomrah 2014-11-03 14:12:20 +08:00
parent 966b6ec919
commit 2404e117d0
1 changed files with 14 additions and 0 deletions

View File

@ -165,3 +165,17 @@
<div class="form-actions form-fixed pagination-right">
<%#= link_to content_tag(:i, nil, :class => 'icon-plus icon-white') + t(:upload), upload_package_admin_designs_path, :class => 'btn btn-primary pull-right' %>
</div>
<script type="text/javascript">
$(document).on('change', '.design_default', function(){
$("#alert_wrap").show();
$(".modal-backdrop").show();
$(this).attr('value');
// console.log($(this).attr('rel') + '/' + $(this).val());
$.getScript($(this).attr('rel'),function(){
$("#alert_wrap").hide();
$(".modal-backdrop").hide();
});
});
</script>