template_aide/Resources/Public/JavaScript/NewContentElementWizardPreview.js
Philipp Dieter baa56b6dc3 [INIT]
2018-11-30 22:50:45 +01:00

63 lines
2.2 KiB
JavaScript

/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and license information, please read the
* LICENSE.txt file that was distributed with this source code.
*
* The TYPO3 project - inspiring people to share!
*/
define(["require", "exports", "jquery"], function (require, exports, $) {
"use strict";
/**
* Module: TYPO3/CMS/Backend/ColorPicker
* contains all logic for the color picker used in FormEngine
* @exports TYPO3/CMS/Backend/ColorPicker
*/
var NewContentElementWizardPreview = (function() {
//console.log('loaded here ==============');
$('.media-new-content-element-wizard .t3js-icon').hover(
function() {
console.log('mouse in');
}, function() {
console.log('mouse out');
}
)
}());
return new NewContentElementWizardPreview();
//var ColorPicker = (function () {
/**
* The constructor, set the class properties default values
*/
// function ColorPicker() {
// this.selector = '.t3js-color-picker';
// }
/**
* Initialize the color picker for the given selector
*/
// ColorPicker.prototype.initialize = function () {
// $(this.selector).minicolors({
// format: 'hex',
// position: 'bottom left',
// theme: 'bootstrap',
// });
// $(document).on('change', '.t3js-colorpicker-value-trigger', function (event) {
// var $element = $(event.target);
// if ($element.val() !== '') {
// $element.closest('.t3js-formengine-field-item')
// .find('.t3js-color-picker')
// .val($element.val())
// .trigger('paste');
// $element.val('');
// }
// });
// };
// return ColorPicker;
//}());
//return new ColorPicker();
});