Changeset 1641
- Timestamp:
- 2010-08-03 12:24:15 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/modules/kauri-forms/kauri-forms-extra/src/main/kauri/static/color/js/color.js
r1569 r1641 26 26 $.extend(ColorControl.prototype.templates, { 27 27 control : 28 "< input type='text'>"28 "<div kauri-role='container'><input type='text' kauri-role='input'></div>" 29 29 }); 30 30 31 31 ColorControl.prototype.initElements = function(create) { 32 32 var $input = this.getElement(); 33 $input.colorInput();33 this.colorInput = $input.colorInput(); 34 34 } 35 35 … … 51 51 } 52 52 53 ColorControl.prototype.close = function(){ 54 var $container = this.getElement("container"); 55 if($container){ 56 $container.remove(); 57 }else{ 58 var $input = this.getElement(); 59 $pickerimg = $input.next(); 60 $pickerimg.remove(); 61 kf.Control.close(this); 62 } 63 64 } 65 53 66 kf.fieldTypes.put("color", 54 67 {
Note: See TracChangeset
for help on using the changeset viewer.