|
1690 | 1690 | } |
1691 | 1691 |
|
1692 | 1692 | var pos = methods._calculatePosition(field, prompt, options); |
1693 | | - prompt.css({ |
1694 | | - 'position': positionType === 'inline' ? 'relative' : 'absolute', |
1695 | | - "top": pos.callerTopPosition, |
1696 | | - "left": pos.callerleftPosition, |
1697 | | - "marginTop": pos.marginTopSize, |
1698 | | - "opacity": 0 |
1699 | | - }).data("callerField", field); |
| 1693 | + // Support RTL layouts by @yasser_lotfy ( Yasser Lotfy ) |
| 1694 | + if ($('body').hasClass('rtl')) { |
| 1695 | + prompt.css({ |
| 1696 | + 'position': positionType === 'inline' ? 'relative' : 'absolute', |
| 1697 | + "top": pos.callerTopPosition, |
| 1698 | + "left": "initial", |
| 1699 | + "right": pos.callerleftPosition, |
| 1700 | + "marginTop": pos.marginTopSize, |
| 1701 | + "opacity": 0 |
| 1702 | + }).data("callerField", field); |
| 1703 | + } else { |
| 1704 | + prompt.css({ |
| 1705 | + 'position': positionType === 'inline' ? 'relative' : 'absolute', |
| 1706 | + "top": pos.callerTopPosition, |
| 1707 | + "left": pos.callerleftPosition, |
| 1708 | + "right": "initial", |
| 1709 | + "marginTop": pos.marginTopSize, |
| 1710 | + "opacity": 0 |
| 1711 | + }).data("callerField", field); |
| 1712 | + } |
1700 | 1713 |
|
1701 | 1714 |
|
1702 | 1715 | if (options.autoHidePrompt) { |
|
1742 | 1755 | prompt.find(".formErrorContent").html(promptText); |
1743 | 1756 |
|
1744 | 1757 | var pos = methods._calculatePosition(field, prompt, options); |
1745 | | - var css = {"top": pos.callerTopPosition, |
1746 | | - "left": pos.callerleftPosition, |
1747 | | - "marginTop": pos.marginTopSize, |
1748 | | - "opacity": 0.87}; |
| 1758 | + // Support RTL layouts by @yasser_lotfy ( Yasser Lotfy ) |
| 1759 | + if ($('body').hasClass('rtl')) { |
| 1760 | + var css = {"top": pos.callerTopPosition, |
| 1761 | + "left": "initial", |
| 1762 | + "right": pos.callerleftPosition, |
| 1763 | + "marginTop": pos.marginTopSize, |
| 1764 | + "opacity": 0.87}; |
| 1765 | + } else { |
| 1766 | + var css = {"top": pos.callerTopPosition, |
| 1767 | + "left": pos.callerleftPosition, |
| 1768 | + "right": "initial", |
| 1769 | + "marginTop": pos.marginTopSize, |
| 1770 | + "opacity": 0.87}; |
| 1771 | + } |
1749 | 1772 |
|
1750 | 1773 | prompt.css({ |
1751 | 1774 | "opacity": 0, |
|
0 commit comments