<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:fb="http://www.facebook.com/2008/fbml">
  <head>
    <title><%= @title || '' %> | Mockr</title>
    <link rel="shortcut icon" href="/images/feelings/happy.gif" />
    <%= stylesheet_link_tag "base", "shared/progress", "layouts/application" %>

    <%= javascript_include_tag(
          "//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js") %>
    <%= javascript_include_tag "user",
                               "scrollto",
                               "plugins/jquery.form",
                               "plugins/jquery.cookie",
                               "plugins/jquery.shortkeys",
                               "plugins/jquery.ui.widget",
                               "plugins/jquery.iframe-transport",
                               "plugins/jquery.fileupload",
                               "mockr" %>
    <%= yield :head %>
  </head>
  <body>
    <%= render :partial => "/shared/facebook_connect_js" %>
    <%= render :partial => "/shared/flash", :locals => {:flash => flash} %>
    <%= yield %>
  </body>
</html>

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:fb="http://www.facebook.com/2008/fbml">
  <head>
    <title><%= @title || '' %> | Mockr</title>
    <link rel="shortcut icon" href="/images/feelings/happy.gif" />
    <%= stylesheet_link_tag "base", "shared/progress", "layouts/application" %>

    <%= javascript_include_tag(
          "//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js") %>
    <%= javascript_include_tag "user",
                               "scrollto",
                               "plugins/jquery.form",
                               "plugins/jquery.cookie",
                               "plugins/jquery.shortkeys",
                               "plugins/jquery.ui.widget",
                               "plugins/jquery.iframe-transport",
                               "plugins/jquery.fileupload",
                               "mockr",
                               "jquery-ujs-rails" %>
    <%= yield :head %>
  </head>
  <body>
    <%= render :partial => "/shared/facebook_connect_js" %>
    <%= render :partial => "/shared/flash", :locals => {:flash => flash} %>
    <%= yield %>
  </body>
</html>

Add jquery-ujs-rails to mocks/show layout
Add jquery-ujs-rails to mocks/show layout

Rails 3 and higher requires an unobtrusive JavaScript library to take care of
HTTP verbs like DELETE; the JavaScript intercepts the button click and handles
the DELETE.

Change-Id: Ie2e7a00659edcc9f615493fb5680868b5e56fa58
Reviewed-on: https://gerrit.causes.com/6054
Reviewed-by: Greg Hurrell <79e2475f81a6317276bf7cbb3958b20d289b78df@causes.com>
Tested-by: Adam Derewecki <0e18f44c1fec03ec4083422cb58ba6a09ac4fb2a@causes.com>
