includes/clientside/tinymce/utils/form_utils.js
changeset 459 31c23016ab62
parent 395 fa4c5ecb7c9a
child 543 dffcbfbc4e59
equal deleted inserted replaced
458:c433348f3628 459:31c23016ab62
     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