- $('name').style.color = color;
- $('desc').style.color = color;
- $('textcolor').value = color;
- }
- function PopupWindow_hidePopup(magicword) {
- if ( magicword != 'prettyplease' )
- return false;
- if (this.divName != null) {
- if (this.use_gebi) {
- document.getElementById(this.divName).style.visibility = "hidden";
- }
- else if (this.use_css) {
- document.all[this.divName].style.visibility = "hidden";
- }
- else if (this.use_layers) {
- document.layers[this.divName].visibility = "hidden";
- }
- }
- else {
- if (this.popupWindow && !this.popupWindow.closed) {
- this.popupWindow.close();
- this.popupWindow = null;
- }
- }
- return false;
- }
- function colorSelect(t,p) {
- if ( cp.p == p && document.getElementById(cp.divName).style.visibility != "hidden" ) {
- cp.hidePopup('prettyplease');
- } else {
- cp.p = p;
- cp.select(t,p);
- }
+ jQuery('#name').css('color', color);
+ jQuery('#desc').css('color', color);
+ jQuery('#textcolor').val(color);
+ farbtastic.setColor(color);