dialog-promise
Advanced tools
Comparing version 0.9.5 to 0.9.6
@@ -237,2 +237,6 @@ "use strict"; | ||
body.removeChild(dialogWindow); | ||
if(opts.replacingElement && opts.replacingElement instanceof HTMLElement){ | ||
var element = opts.replacingElement; | ||
element.style.display='block'; | ||
} | ||
if(answer && answer instanceof Error){ | ||
@@ -277,2 +281,7 @@ reject(answer); | ||
ubicateDialog=function ubicateDialog(){ | ||
if(opts.replacingElement && opts.replacingElement instanceof HTMLElement){ | ||
var element = opts.replacingElement; | ||
element.style.display='none'; | ||
opts.underElement = element.parentElement; | ||
} | ||
if(opts.underElement){ | ||
@@ -308,2 +317,3 @@ dialogWindow.setAttribute('docked','under'); | ||
} | ||
}; | ||
@@ -310,0 +320,0 @@ if(dialogWindow.offsetWidth){ |
{ | ||
"name": "dialog-promise", | ||
"description": "Dialog that returns promises", | ||
"version": "0.9.5", | ||
"version": "0.9.6", | ||
"author": "Codenautas <codenautas@googlegroups.com>", | ||
@@ -6,0 +6,0 @@ "repository": "codenautas/dialog-promise", |
@@ -68,2 +68,3 @@ # dialog-promise | ||
`underElement` |`null` |the dialog apears below this element. If no element is passed the dialog apears in the center of the window | ||
`replacingElement`|`null` |hides the specified element and places the window under his father. If father not exists, window hangs from body | ||
`withCloseButton` |`true` |display the close button | ||
@@ -70,0 +71,0 @@ `mainAttrs` |`{}` |attributes (properties) for main dialog window |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
54007
875
116