1. psilar
  2. django-selectable

Commits

Hugh Dowling  committed 8de67a6

Updated to use twitter bootstrap button

  • Participants
  • Parent commits fb67e81
  • Branches default

Comments (0)

Files changed (2)

File selectable/static/selectable/css/dj.selectable.css

View file
     list-style-type: none;
 }
 ul.selectable-deck li.selectable-deck-item .selectable-deck-remove {
-    float: right;
+    float: left;
 }
 ul.selectable-deck-bottom-inline,
 ul.selectable-deck-top-inline {

File selectable/static/selectable/js/jquery.dj.selectable.js

View file
             /* Add new deck list item from a given hidden input */
             var self = this;
             var li = $('<li>')
-            .html($(input).attr('title'))
+            .text($(input).attr('title'))
             .addClass('selectable-deck-item');
             var item = {element: self.element, input: input, wrapper: li, deck: self.deck};
             if (self._trigger("add", null, item) === false) {
                 .append(
                     $('<a>')
                     .attr('href', '#')
-                    .button({
-                        icons: {
-                            primary: self.options.removeIcon
-                        },
-                        text: false
-                    })
+                    .append('<div class="ui-icon ' + self.options.removeIcon + '"></div>')
                     .click(function (e) {
                         e.preventDefault();
                         if (self._trigger("remove", e, item) !== false) {
                 $input.removeClass("ui-corner-all")
                 .addClass("ui-corner-left ui-combo-input");
                 // Add show all items button
-                $("<a>").html("&nbsp;").attr("tabIndex", -1).attr("title", "Show All Items")
+                $("<a>").text("&nbsp;").attr("tabIndex", -1).attr("title", "Show All Items")
                 .insertAfter($input)
                 .button({
                     icons: {