Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 38ef9063

Von Moritz Bunkus vor fast 14 Jahren hinzugefügt

  • ID 38ef906377d48f5bce5c2df79d3dd2dea2accb38
  • Vorgänger bbb24781
  • Nachfolger df8ecbfb

Namen der Original-Select auf "Ausgewählt"-Select umziehen

Unterschiede anzeigen:

js/jquery.multiselect2side.js
32 32
      if (originalName.indexOf('[') != -1)
33 33
        originalName = originalName.substring(0, originalName.indexOf('['));
34 34

  
35
      var nameDx = originalName + "ms2side__dx";
35
      var nameDx = $(this).attr("name");
36
      var idDx   = originalName + "ms2side__dx";
36 37
      var nameSx = originalName + "ms2side__sx";
37 38
      var size   = $(this).attr("size");
39
      $(this).attr("name", originalName + "ms2side__orig");
38 40
      // SIZE MIN
39 41
      if (size < 6) {
40 42
        $(this).attr("size", "6");
......
75 77
        "</div>" +
76 78
        "<div class='ms2side__select'>" +
77 79
        (o.labeldx ? ("<div class='ms2side__header'>" + o.labeldx + "</div>") : "") +
78
        "<select title='" + o.labeldx + "' name='" + nameDx + "' id='" + nameDx + "' size='" + size + "' multiple='multiple' ></select>" +
80
        "<select title='" + o.labeldx + "' name='" + nameDx + "' id='" + idDx + "' size='" + size + "' multiple='multiple' ></select>" +
79 81
        "</div>" +
80 82
        ((o.selectedPosition == 'right' && o.moveOptions) ? divUpDown : "") +
81 83
        "</div>";

Auch abrufbar als: Unified diff