Skip to content

Commit

Permalink
Removes the jquery.example plugin.
Browse files Browse the repository at this point in the history
Fixes bug 1037299.

Change-Id: I9c561c2ab39a64c8c98f0861fc11c972b26c787c
  • Loading branch information
gabrielhurley committed Aug 15, 2012
1 parent d854ea0 commit aca0c22
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 34 deletions.
9 changes: 5 additions & 4 deletions horizon/static/horizon/js/horizon.forms.js
Expand Up @@ -53,17 +53,18 @@ horizon.forms.prevent_multiple_submission = function (el) {
horizon.forms.init_examples = function (el) {
var $el = $(el);

// FIXME(gabriel): These should be moved into the forms themselves as help text, etc.
// Generic examples.
$el.find("#id_description").example(gettext("Additional information here..."));
$el.find("#id_description").attr("placeholder", gettext("Additional information here..."));

// Update/create image form.
$el.find("#create_image_form input#id_copy_from").example("http://example.com/image.iso");
$el.find("#create_image_form input#id_copy_from").attr("placeholder", "http://example.com/image.iso");

// Table search box.
$el.find(".table_search input").example(gettext("Filter"));
$el.find(".table_search input").attr("placeholder", gettext("Filter"));

// Volume attachment form.
$el.find("#attach_volume_form #id_device").example("/dev/vdc/");
$el.find("#attach_volume_form #id_device").attr("placeholder", "/dev/vdc/");
};

horizon.addInitFunction(function () {
Expand Down
29 changes: 0 additions & 29 deletions horizon/static/horizon/lib/jquery/jquery.example.min.js

This file was deleted.

1 change: 0 additions & 1 deletion horizon/templates/horizon/_scripts.html
Expand Up @@ -8,7 +8,6 @@
<script src='{{ STATIC_URL }}horizon/lib/jquery/jquery.min.js' type='text/javascript' charset="utf-8"></script>
<script src='{{ STATIC_URL }}horizon/lib/jquery/jquery.cookie.js' type='text/javascript' charset="utf-8"></script>
<script src='{{ STATIC_URL }}horizon/lib/jquery/jquery.quicksearch.js' type='text/javascript' charset="utf-8"></script>
<script src='{{ STATIC_URL }}horizon/lib/jquery/jquery.example.min.js' type='text/javascript' charset="utf-8"></script>
<script src="{{ STATIC_URL }}horizon/lib/jquery/jquery.table-sorter.js" type="text/javascript" charset="utf-8"></script>
<script src="{{ STATIC_URL }}horizon/lib/spin.js" type="text/javascript" charset="utf-8"></script>
<script src="{{ STATIC_URL }}horizon/lib/spin.jquery.js" type="text/javascript" charset="utf-8"></script>
Expand Down

0 comments on commit aca0c22

Please sign in to comment.