Changes for jquery 1.7 (.live -> .on), create module_layout
This commit is contained in:
1 parent
3ff2e7867e
commit
a3f152b200
6 files changed
+105
-3
No files matched your search
@@ -9,7 +9,7 @@ function resize() {
|
||||
}
|
||||
}
|
||||
$(document).ready(function(){
|
||||
$('.orbit-bar-member').live('click', function(){
|
||||
$(document).on('click', '.orbit-bar-member', function(){
|
||||
$(this).hasClass('open') ? $(this).removeClass('open') : $(this).addClass('open');
|
||||
$('.bar-login .dropdown-menu').toggle();
|
||||
return false;
|
||||
@@ -20,7 +20,7 @@ $(document).ready(function(){
|
||||
$('.bar-login .dropdown-menu').hide();
|
||||
});
|
||||
|
||||
$('.dropdown-menu').live('click', function(e) {
|
||||
$(document).on('click', '.dropdown-menu', function(e) {
|
||||
e.stopPropagation();
|
||||
$('.bar-login .dropdown-menu').show();
|
||||
});
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
class ObitFrontendComponentController< ApplicationController
|
||||
before_filter :setup_vars
|
||||
before_filter {|c| c.front_end_available(@app_title)}
|
||||
layout 'production'
|
||||
layout 'module_widget'
|
||||
|
||||
def setup_vars
|
||||
@app_title = request.fullpath.split('/')[2]
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<!--[if lt IE 9]>
|
||||
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
|
||||
<![endif]-->
|
||||
<%= stylesheet_link_tag "widget" %>
|
||||
<%= javascript_include_tag "widget" %>
|
||||
<%= csrf_meta_tag %>
|
||||
</head>
|
||||
<body>
|
||||
<%= yield %>
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user