forked from saurabh/orbit4-5
fixed template change script
This commit is contained in:
parent
966b6ec919
commit
2404e117d0
|
@ -165,3 +165,17 @@
|
||||||
<div class="form-actions form-fixed pagination-right">
|
<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' %>
|
<%#= 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>
|
</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>
|
Loading…
Reference in New Issue