Lines Matching defs:li

15  * @param {jQuery} $li
17 var checkForMovement = function ($li) {
19 var $all = $li.add($li.find('li.moved'));
38 * @param {jQuery} $li the edited or moved LI
43 var checkNameAllowed = function ($li, $parent, name) {
45 $parent.children('li').each(function () {
46 if (this === $li[0]) return;
48 if ($li.hasClass('type-d')) cname = 'type-d';
59 * @param {jQuery} $li
62 var determineNewID = function ($li) {
63 var myname = $li.data('name');
65 var $parent = $li.parent().closest('li');
92 * Initialize the drag & drop-tree at the given li (must be this).
95 var $li = jQuery(this);
96 var my_root = $li.closest('.tree_root')[0];
97 $li.draggable({
114 if ($dropped.children('div.li').children('input').prop('checked')) {
154 var add_template = '<li class="type-d open created" data-name="%s" data-id="%s"><div class="li"><input type="checkbox"> <a href="%s" class="idx_dir">%s</a><img class="rename" src="' + DOKU_BASE + 'lib/plugins/move/images/rename.png"></div><ul class="tree_list"></ul></li>';
162 var $li = $clicky.parent().parent();
164 if ($clicky[0].tagName == 'A' && $li.hasClass('type-d')) { // Click on folder - open and close via AJAX
166 if ($li.hasClass('open')) {
167 $li
172 $li
177 if (!$li.find('ul').length) {
178 var is_media = $li.closest('div.tree_root').hasClass('tree_media') ? 1 : 0;
187 $li.append(data);
188 $li.find('li').each(initTree);
199 var newname = window.prompt(LANG.plugins.move.renameitem, $li.data('name'));
202 if (checkNameAllowed($li, $li.parent(), newname)) {
203 $li.data('name', newname);
205 checkForMovement($li);
214 if (checkNameAllowed($li, $li.children('ul'), newname)) {
216 $li.children('ul').prepend($new_li);
226 }).find('li').each(initTree);