source: extensions/cuise/admin/js/admin.js @ 19486

Last change on this file since 19486 was 19486, checked in by cljosse, 11 years ago

[style cuise] create cuise

File size: 1.2 KB
Line 
1jQuery(document).ready(function () {
2  var input = $("input:file").val();
3
4  //===================================
5  // jQuery("#fileinput").trigger("ON");
6  //===================================
7  jQuery("#fileinput").live('ON', function (e) {
8    target = e.target.id;
9    url = jQuery("#img_cuise").val();
10
11    url = url.substr(url.lastIndexOf("\\") + 1);
12    ing = jQuery("#img_cuise");
13    id = this.id;
14    jQuery("#fileinput").val(url);
15    jQuery('#thePicturePage').css("background-image", 'url(' + url + ')');
16
17  });
18
19
20
21  jQuery("#img_cuise").click(function (i) {
22
23    n = 1;
24  });
25
26  var f = jQuery.farbtastic('#picker');
27  var p = jQuery('#picker').css('opacity', 1);
28  var selected;
29  jQuery('.colorwell')
30      .each(function () {
31        f.linkTo(this);
32        $(this).css('opacity', 1);
33
34      })
35      .focus(function () {
36        if (selected) {
37          $(selected).css('opacity', 1).removeClass('colorwell-selected');
38        }
39        f.linkTo(this);
40        p.css('opacity', 1);
41        $(selected = this).css('opacity', 1).addClass('colorwell-selected');
42        col = $(selected = this).css("backgroundColor");
43
44      });
45});
46
47   
Note: See TracBrowser for help on using the repository browser.