mirror of
https://github.com/ansible/awx.git
synced 2026-08-04 03:50:01 -02:30
Fixed pop-help directive so clicking on a help icon or button closes all other help windows. Prior to this help windows would remain open. Clicking on multiple help icons/buttons left help windows allover the screen, especially on Job Template page.
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
angular.module('GeneratorHelpers', ['GeneratorHelpers'])
|
||||
|
||||
.factory('Attr', function() {
|
||||
return function(obj, key) {
|
||||
return function(obj, key, fld) {
|
||||
var result;
|
||||
var value = (typeof obj[key] === "string") ? obj[key].replace(/[\'\"]/g, '"') : obj[key];
|
||||
switch(key) {
|
||||
@@ -49,7 +49,7 @@ angular.module('GeneratorHelpers', ['GeneratorHelpers'])
|
||||
break;
|
||||
case 'awPopOver':
|
||||
// construct the entire help link
|
||||
result = "<a href=\"\" aw-pop-over=\"" + value + "\" ";
|
||||
result = "<a id=\"awp-" + fld + "\" href=\"\" aw-pop-over=\"" + value + "\" ";
|
||||
result += (obj.dataTitle) ? "data-title=\"" + obj['dataTitle'].replace(/[\'\"]/g, '"') + "\" " : "";
|
||||
result += (obj.dataPlacement) ? "data-placement=\"" + obj['dataPlacement'].replace(/[\'\"]/g, '"') + "\" " : "";
|
||||
result += (obj.dataContainer) ? "data-container=\"" + obj['dataContainer'].replace(/[\'\"]/g, '"') + "\" " : "";
|
||||
|
||||
Reference in New Issue
Block a user