Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision e4a28a8d

Von Moritz Bunkus vor mehr als 10 Jahren hinzugefügt

  • ID e4a28a8d400a4dd07982fe827a47924bfada3947
  • Vorgänger 2a58d8bf
  • Nachfolger fe7ed06d

Pflichtenhefttextblöcke: Anordnung Bilder via Drag&Drop ändern können

Unterschiede anzeigen:

js/requirement_spec.js
243 243
  return ns.handle_text_block_picture_popup_menu_markings(opt, false);
244 244
};
245 245

  
246
ns.make_text_block_picture_lists_sortable = function() {
247
  kivi.run_once_for(".requirement-spec-text-block-picture-list", 'make-text-block-picture-list-sortable', function($elt) {
248
    $elt.sortable({
249
      stop: function(event, ui) {
250
        $.post('controller.pl?action=RequirementSpecTextBlock/reorder_pictures', {
251
          'picture_id[]': $($elt.sortable('toArray')).map(function(idx, str) { return str.replace('text-block-picture-', ''); }).toArray()
252
        });
253
        return ui;
254
      }
255
      , distance: 5
256
    });
257
  });
258
};
259

  
246 260
// --------------------------------------------------------------------------------
247 261
// ------------------------------ sections and items ------------------------------
248 262
// --------------------------------------------------------------------------------

Auch abrufbar als: Unified diff