Merge branch 'master' into ldap

Conflicts:
	app/assets/stylesheets/new_admin.css.erb
This commit is contained in:
Christophe Vilayphiou committed 2012-04-23 14:13:37 +08:00
commit 2eeb530422
19 files changed
+148 -44

No files matched your search

@@ -0,0 +1,15 @@
//Preview need a link in form as Ex and a corresponding PUT action in controller
//Ex preview trigger:
// <%= link_to "NewPreview", realtime_preview_admin_ad_banner_path(ad_banner_tab) , :class=>'preview_trigger'%>
$(document).ready(function() {
$("a.preview_trigger").click(function(){
$(this).after("<span id='show_preview'></span>");
$.ajax({
type:"put",
url:$(this).attr("href"),
data:$(this).parents("form").serialize()
}).done(function(){ $("#"+start_modal_with_id).modal('show');});
return false;}
);
});
+1 -1
View File
@@ -59,7 +59,7 @@
}
.select-role {
display:none;
padding: 10px 0;
overflow:hidden;
}
.file-upload {
position:relative;