This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
angular.module("umbraco").controller("MultiNodeTreePickerEditor.controller", | |
function ($scope, assetsService, $http, dialogService, mediaHelper) { | |
$scope.model.value = []; | |
// fetch new items and insert them | |
if ($scope.model.value.length === 0) { | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// creating a drop down list for mobile devices | |
class Walker_Nav_Menu_Dropdown extends Walker_Nav_Menu { | |
/* ---------- | |
Checking wheter an item has childen, needed a little workaround, the solution can be found using this link | |
http://wordpress.org/support/topic/how-do-i-know-if-a-menu-item-has-children-or-is-a-leaf#post-3139633 | |
Basicall it adds | |
$item->hasChildren |