aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNeylor Ohmaly2014-02-05 20:41:30 -0200
committerNeylor Ohmaly2014-02-05 20:41:30 -0200
commite079817b83005d16a4acb91ec2b893e503e2a597 (patch)
tree0c5c7db28b4e753ba1d182754e4df8cc1d83afff /src
parent72eaf55a4bb2ac4a88b58d115e52f7a0bb21d5dd (diff)
downloadnsPopover-e079817b83005d16a4acb91ec2b893e503e2a597.tar.bz2
Fix a bug that causes the popover to not recognize the left|* and right|* placements
Diffstat (limited to 'src')
-rw-r--r--src/nsPopover.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nsPopover.js b/src/nsPopover.js
index d391fac..2674f47 100644
--- a/src/nsPopover.js
+++ b/src/nsPopover.js
@@ -57,8 +57,8 @@
throw new Error('"' + options.placement + '" is not a valid placement or has a invalid combination of placements.');
}
- placement_ = match[3] || match[1];
- align_ = match[4] || match[2] || 'center';
+ placement_ = match[6] || match[3] || match[1];
+ align_ = match[8] | match[4] || match[2] || 'center';
$q.when(loadTemplate(options.template, options.plain)).then(function(template) {
template = angular.isString(template) ?