Skip to content

Commit

Permalink
add explicit item popup close button
Browse files Browse the repository at this point in the history
  • Loading branch information
cubehouse committed Apr 21, 2013
1 parent 2aaa18a commit d09f1b6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions js/items.js
Expand Up @@ -106,6 +106,18 @@ define(["config", "stars", "nav", "popup", "pricer", "forms", "api", "msg", "enc

var footer = $("<div>");

var button_close = $("<button>")
.addClass("btn btn-info")
.html("<i class='icon-remove icon-white'></i> Close")
.click(function() {
popup.hide();

return false;
});

// create footer element for popup
footer.append(button_close);

// create edit button
if (_config.settings.database_submit) {
var button_edit = $("<button>")
Expand Down

0 comments on commit d09f1b6

Please sign in to comment.