Changeset 19990 for extensions/cuise/admin/js/fileupload.js
- Timestamp:
- Jan 8, 2013, 12:46:37 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/cuise/admin/js/fileupload.js
r19486 r19990 45 45 jQuery("#fileInputTxt").val(name); 46 46 jQuery(".image").css({ backgroundImage: "url(" + imgname + ")" }); 47 jQuery(".image").trigger("change"); 47 48 return; 48 49 … … 186 187 jQuery(document).ready(function () { 187 188 jQuery(window).load(function (i) { 188 189 if(!jQuery.farbtastic) return ; 190 191 var f = jQuery.farbtastic('#picker'); 192 var p = jQuery('#picker').css('opacity', 1); 193 var selected; 194 jQuery('.colorwell') 195 .each(function () { 196 f.linkTo(this); 197 $(this).css('opacity', 1); 198 199 }) 200 .focus(function () { 201 if (selected) { 202 $(selected).css('opacity', 1).removeClass('colorwell-selected'); 203 } 204 f.linkTo(this); 205 p.css('opacity', 1); 206 $(selected = this).css('opacity', 1).addClass('colorwell-selected'); 207 col = $(selected = this).css("backgroundColor"); 208 209 }); 189 210 }); 190 211 }); … … 192 213 193 214 215
Note: See TracChangeset
for help on using the changeset viewer.