eagle-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jjt...@apache.org
Subject eagle git commit: [EAGLE-987] widget only support in element name to avoid data-widget hit
Date Sat, 01 Apr 2017 07:30:12 GMT
Repository: eagle
Updated Branches:
  refs/heads/master 8b40dae56 -> dd2c09888


[EAGLE-987] widget only support in element name to avoid data-widget hit

In jpm page. site mapping to the wrong instance. Check its caused by widget directive mapping
the data-widget which is used by adminLTE

Author: zombieJ <smith3816@gmail.com>

Closes #899 from zombieJ/EAGLE-987.


Project: http://git-wip-us.apache.org/repos/asf/eagle/repo
Commit: http://git-wip-us.apache.org/repos/asf/eagle/commit/dd2c0988
Tree: http://git-wip-us.apache.org/repos/asf/eagle/tree/dd2c0988
Diff: http://git-wip-us.apache.org/repos/asf/eagle/diff/dd2c0988

Branch: refs/heads/master
Commit: dd2c098888d5850adececc03c4a4f563aab4f7ff
Parents: 8b40dae
Author: zombieJ <smith3816@gmail.com>
Authored: Sat Apr 1 07:29:59 2017 +0000
Committer: r7raul1984 <tangjijun@yhd.com>
Committed: Sat Apr 1 07:29:59 2017 +0000

----------------------------------------------------------------------
 eagle-server/src/main/webapp/app/dev/partials/home.html            | 2 +-
 eagle-server/src/main/webapp/app/dev/partials/site/home.html       | 2 +-
 .../src/main/webapp/app/dev/public/js/components/widget.js         | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/eagle/blob/dd2c0988/eagle-server/src/main/webapp/app/dev/partials/home.html
----------------------------------------------------------------------
diff --git a/eagle-server/src/main/webapp/app/dev/partials/home.html b/eagle-server/src/main/webapp/app/dev/partials/home.html
index 545adf0..9e7c534 100644
--- a/eagle-server/src/main/webapp/app/dev/partials/home.html
+++ b/eagle-server/src/main/webapp/app/dev/partials/home.html
@@ -36,7 +36,7 @@
 	<h3>Widgets</h3>
 	<div class="row flex">
 		<div class="col-sm-6 col-md-4 col-lg-3" ng-repeat="widget in Widget.list track by $index">
-			<div widget="widget"></div>
+			<widget widget="widget"></widget>
 		</div>
 	</div>
 </div>

http://git-wip-us.apache.org/repos/asf/eagle/blob/dd2c0988/eagle-server/src/main/webapp/app/dev/partials/site/home.html
----------------------------------------------------------------------
diff --git a/eagle-server/src/main/webapp/app/dev/partials/site/home.html b/eagle-server/src/main/webapp/app/dev/partials/site/home.html
index 217db56..d18f5a3 100644
--- a/eagle-server/src/main/webapp/app/dev/partials/site/home.html
+++ b/eagle-server/src/main/webapp/app/dev/partials/site/home.html
@@ -18,7 +18,7 @@
 
 <div class="row flex">
 	<div class="col-sm-6 col-md-4 col-lg-3" ng-repeat="widget in Widget.list track by $index">
-		<div widget="widget"></div>
+		<widget widget="widget"></widget>
 	</div>
 
 	<div class="col-sm-6 col-md-4 col-lg-3" ng-if="Widget.list.length === 0">

http://git-wip-us.apache.org/repos/asf/eagle/blob/dd2c0988/eagle-server/src/main/webapp/app/dev/public/js/components/widget.js
----------------------------------------------------------------------
diff --git a/eagle-server/src/main/webapp/app/dev/public/js/components/widget.js b/eagle-server/src/main/webapp/app/dev/public/js/components/widget.js
index cbb4e2b..f3cb949 100644
--- a/eagle-server/src/main/webapp/app/dev/public/js/components/widget.js
+++ b/eagle-server/src/main/webapp/app/dev/public/js/components/widget.js
@@ -23,7 +23,7 @@
 
 	eagleComponents.directive('widget', function($compile, Site) {
 		return {
-			restrict: 'AE',
+			restrict: 'E',
 			priority: 1001,
 
 			controller: function($scope, $element, $attrs) {


Mime
View raw message