File modules/cms/ui/themes/default/script/plugin/jquery-plugin-toggleAttr.js
Last commit: Wed Mar 31 01:52:57 2021 +0200 Jan Dankert New: Replace JQuery with OQuery, a selfmade light JQuery replacement.
1 import $ from "../jquery-global.js"; 2 3 export default function(attr, attr1, attr2) { 4 return this.each(function() { 5 let self = $(this); 6 if (self.attr(attr) == attr1) 7 self.attr(attr, attr2); 8 else 9 self.attr(attr, attr1); 10 }); 11 };
Downloadmodules/cms/ui/themes/default/script/plugin/jquery-plugin-toggleAttr.js
History Wed, 31 Mar 2021 01:52:57 +0200 Jan Dankert New: Replace JQuery with OQuery, a selfmade light JQuery replacement. Sat, 27 Mar 2021 05:14:11 +0100 Jan Dankert Refactoring: Converting all script files to ES6 modules (work in progress); removed jquery-ui (drag and drop will be replaced by HTML5, sortable by a small lib) Tue, 1 Dec 2020 00:07:39 +0100 Jan Dankert New: Visibility-Button for password fields, fix: QR-code button for mobile devices.