| @@ -490,8 +490,9 @@ | ||
| 490 | 490 | } |
| 491 | 491 | |
| 492 | 492 | // Show the vanilla selector |
| 493 | 493 | function pagelayer_show_vanilla(){ |
| 494 | + var Picker = typeof pagelayer_Picker !== 'undefined' ? pagelayer_Picker : (typeof Picker !== 'undefined' ? Picker : undefined); | |
| 494 | 495 | if (typeof Picker === 'undefined') { |
| 495 | 496 | return; |
| 496 | 497 | } |
| 497 | 498 | jQuery('.pagelayer-show-vanilla').each(function(){ |
| @@ -507,9 +508,11 @@ | ||
| 507 | 508 | } |
| 508 | 509 | |
| 509 | 510 | var picker = new Picker({ |
| 510 | 511 | parent : jEle[0], |
| 512 | + popup : 'left', | |
| 511 | 513 | color : sColor, |
| 514 | + doc : document | |
| 512 | 515 | }); |
| 513 | 516 | |
| 514 | 517 | // You can do what you want with the chosen color using two callbacks: onChange and onDone. |
| 515 | 518 | picker.onChange = function(color) { |