|
@@ -37,19 +37,11 @@ function (angular, $, config) {
|
|
|
var getter = $parse(attr.type), panelType = getter($scope);
|
|
var getter = $parse(attr.type), panelType = getter($scope);
|
|
|
var newScope = $scope.$new();
|
|
var newScope = $scope.$new();
|
|
|
|
|
|
|
|
- $scope.kbnJqUiDraggableOptions = {
|
|
|
|
|
- revert: 'invalid',
|
|
|
|
|
- helper: function() {
|
|
|
|
|
- return $('<div style="width:200px;height:100px;background: rgba(100,100,100,0.50);"/>');
|
|
|
|
|
- },
|
|
|
|
|
- placeholder: 'keep'
|
|
|
|
|
- };
|
|
|
|
|
-
|
|
|
|
|
// compile the module and uncloack. We're done
|
|
// compile the module and uncloack. We're done
|
|
|
function loadModule($module) {
|
|
function loadModule($module) {
|
|
|
$module.appendTo(elem);
|
|
$module.appendTo(elem);
|
|
|
elem.wrap(container);
|
|
elem.wrap(container);
|
|
|
- /* jshint indent:false */
|
|
|
|
|
|
|
+
|
|
|
$compile(elem.contents())(newScope);
|
|
$compile(elem.contents())(newScope);
|
|
|
elem.removeClass("ng-cloak");
|
|
elem.removeClass("ng-cloak");
|
|
|
|
|
|
|
@@ -81,7 +73,6 @@ function (angular, $, config) {
|
|
|
$module.first().find('.panel-header').nextAll().wrapAll(content);
|
|
$module.first().find('.panel-header').nextAll().wrapAll(content);
|
|
|
loadModule($module);
|
|
loadModule($module);
|
|
|
});
|
|
});
|
|
|
-
|
|
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
});
|
|
});
|