Author: erinnp
Date: Thu Aug 15 21:15:28 2013
New Revision: 1514497
URL: http://svn.apache.org/r1514497
Log:
Fix context capturing
Modified:
rave/branches/angular/rave-portal-resources/src/main/webapp/static/script/common/directives/Base.js
Modified:
rave/branches/angular/rave-portal-resources/src/main/webapp/static/script/common/directives/Base.js
URL:
http://svn.apache.org/viewvc/rave/branches/angular/rave-portal-resources/src/main/webapp/static/script/common/directives/Base.js?rev=1514497&r1=1514496&r2=1514497&view=diff
==============================================================================
---
rave/branches/angular/rave-portal-resources/src/main/webapp/static/script/common/directives/Base.js
(original)
+++
rave/branches/angular/rave-portal-resources/src/main/webapp/static/script/common/directives/Base.js
Thu Aug 15 21:15:28 2013
@@ -17,7 +17,7 @@
* under the License.
*/
-define([], function (rave) {
+define([], function () {
return [ 'Context',
function (context) {
return {
@@ -25,6 +25,10 @@ define([], function (rave) {
link: function link(scope, el, attrs) {
var href = attrs.href;
+ href = href.split('/')
+ href.splice(-4);
+ href = href.join('/');
+
context.setContext(href);
}
}