Permalink
Browse files

fix removal of save button when setting tag product to ---- value

  • Loading branch information...
1 parent 3935cde commit d652a5e88c9e3005a56d28685e5fca755cd74d91 @camd camd committed Mar 26, 2013
Showing with 3 additions and 6 deletions.
  1. +3 −6 static/js/multiselect-ajax.js
@@ -40,8 +40,7 @@ var MT = (function (MT, $) {
included_id = $(".edit-" + options.for_type).data(
options.for_type + "-id");
if (trigger_id || options.fetch_without_trigger_value) {
- $(".multiselect").closest(
- ".formfield").removeClass("hiddenfield");
+ $(".multiselect").removeClass("hiddenfield");
MT.doPopulateMultiselect(
options.ajax_url_root,
options.ajax_trigger_filter,
@@ -53,15 +52,13 @@ var MT = (function (MT, $) {
);
}
else if (options.hide_without_trigger_value) {
- $(".multiselect").closest(
- ".formfield").addClass("hiddenfield");
+ $(".multiselect").addClass("hiddenfield");
}
else {
// the user selected the "----" option, so clear
// multiselect
$(".multiselect").find(".select").html("");
- $(".multiselect").closest(
- ".formfield").removeClass("hiddenfield");
+ $(".multiselect").removeClass("hiddenfield");
}
});
}

0 comments on commit d652a5e

Please sign in to comment.