Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision b2de6d05

Von Moritz Bunkus vor mehr als 10 Jahren hinzugefügt

  • ID b2de6d05cd083b046e6f69e227e36d8e82ce2f9b
  • Vorgänger 322af7b5
  • Nachfolger e2a8a58a

Debugcode

Unterschiede anzeigen:

js/requirement_spec.js
47 47
}
48 48

  
49 49
function requirement_spec_tree_node_moved(event) {
50
  console.debug("node moved");
50
  // console.debug("node moved");
51 51
  var move_obj   = $.jstree._reference('#tree')._get_move();
52 52
  var dragged    = move_obj.o;
53 53
  var dropped    = move_obj.r;
......
171 171
// --------------------------------------------------------------------------------
172 172

  
173 173
function find_item_id(clicked_elt) {
174
  console.log("clicked id: " + $(clicked_elt).attr('id'));
174
  // console.log("clicked id: " + $(clicked_elt).attr('id'));
175 175
  var id     = $(clicked_elt).attr('id');
176 176
  var result = /^(function-block|function-block-content|sub-function-block|sub-function-block-content|section|section-header)-(\d+)$/.exec(id);
177 177
  if (result) {
178
    console.log("find_item_id: case 1: " + result[2]);
178
    // console.log("find_item_id: case 1: " + result[2]);
179 179
    return result[2];
180 180
  }
181 181

  
182 182
  id = $(clicked_elt).closest("[id*=fb-]").attr('id')
183 183
  if (/^fb-\d+$/.test(id)) {
184
    console.log("find_item_id: case 2: " + id.substr(3));
184
    // console.log("find_item_id: case 2: " + id.substr(3));
185 185
    return id.substr(3) * 1;
186 186
  }
187 187

  
188
  console.log("find_item_id: case undef");
188
  // console.log("find_item_id: case undef");
189 189
  return undefined;
190 190
}
191 191

  

Auch abrufbar als: Unified diff