equal
deleted
inserted
replaced
1 /** |
1 /** |
2 * $Id: form_utils.js 520 2008-01-07 16:30:32Z spocke $ |
2 * $Id: form_utils.js 614 2008-02-20 17:57:57Z spocke $ |
3 * |
3 * |
4 * Various form utilitiy functions. |
4 * Various form utilitiy functions. |
5 * |
5 * |
6 * @author Moxiecode |
6 * @author Moxiecode |
7 * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved. |
7 * @copyright Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved. |
30 if (state) { |
30 if (state) { |
31 lnk.setAttribute("realhref", lnk.getAttribute("href")); |
31 lnk.setAttribute("realhref", lnk.getAttribute("href")); |
32 lnk.removeAttribute("href"); |
32 lnk.removeAttribute("href"); |
33 tinyMCEPopup.dom.addClass(img, 'disabled'); |
33 tinyMCEPopup.dom.addClass(img, 'disabled'); |
34 } else { |
34 } else { |
35 lnk.setAttribute("href", lnk.getAttribute("realhref")); |
35 if (lnk.getAttribute("realhref")) |
|
36 lnk.setAttribute("href", lnk.getAttribute("realhref")); |
|
37 |
36 tinyMCEPopup.dom.removeClass(img, 'disabled'); |
38 tinyMCEPopup.dom.removeClass(img, 'disabled'); |
37 } |
39 } |
38 } |
40 } |
39 } |
41 } |
40 |
42 |