Skip to content

Commit

Permalink
References #125, #123 - Updates the Refresh() method
Browse files Browse the repository at this point in the history
  • Loading branch information
gfranko committed Feb 28, 2013
1 parent 5f4cfcb commit 2c449aa
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 6 deletions.
3 changes: 0 additions & 3 deletions demos/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
<link type="text/css" rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.css" />
<!--<link type="text/css" rel="stylesheet" href="css/jqm.css" /> -->
<style>
.selectboxit-container {
margin-top: 250px;
}
</style>
</head>
<body>
Expand Down
8 changes: 8 additions & 0 deletions src/javascripts/jquery.selectBoxIt.destroy.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@
// Undelegates all of the dropdown list event handlers with the `selectBoxIt` namespace
undelegate(".selectBoxIt");

// If the original select box has been placed inside of the new drop down container
if ($.contains(self.dropdownContainer[0], self.originalElem)) {

// Moves the original select box before the drop down container
self.dropdownContainer.before(self.selectBox);

}

// Remove all of the `selectBoxIt` DOM elements from the page
self.dropdownContainer.remove();

Expand Down
8 changes: 8 additions & 0 deletions src/javascripts/jquery.selectBoxIt.js
Original file line number Diff line number Diff line change
Expand Up @@ -1827,6 +1827,14 @@
// Undelegates all of the dropdown list event handlers with the `selectBoxIt` namespace
undelegate(".selectBoxIt");

// If the original select box has been placed inside of the new drop down container
if ($.contains(self.dropdownContainer[0], self.originalElem)) {

// Moves the original select box before the drop down container
self.dropdownContainer.before(self.selectBox);

}

// Remove all of the `selectBoxIt` DOM elements from the page
self.dropdownContainer.remove();

Expand Down
Loading

0 comments on commit 2c449aa

Please sign in to comment.