Ignore:
Timestamp:
Jan 8, 2013, 12:46:37 PM (11 years ago)
Author:
cljosse
Message:
  • [style] cuise save
File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/cuise/admin/js/fileupload.js

    r19486 r19990  
    4545      jQuery("#fileInputTxt").val(name);
    4646      jQuery(".image").css({ backgroundImage: "url(" + imgname + ")" });
     47      jQuery(".image").trigger("change");
    4748      return;
    4849
     
    186187  jQuery(document).ready(function () {
    187188    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      });
    189210    });
    190211  });
     
    192213
    193214
     215
Note: See TracChangeset for help on using the changeset viewer.