remove poc js utility
This commit is contained in:
parent
760b7be0ec
commit
23d94e1335
@ -1077,7 +1077,6 @@ siteLayout' headingOverride widget = do
|
|||||||
addScript $ StaticR js_utils_form_js
|
addScript $ StaticR js_utils_form_js
|
||||||
addScript $ StaticR js_utils_inputs_js
|
addScript $ StaticR js_utils_inputs_js
|
||||||
addScript $ StaticR js_utils_modal_js
|
addScript $ StaticR js_utils_modal_js
|
||||||
addScript $ StaticR js_utils_poc_js
|
|
||||||
addScript $ StaticR js_utils_showHide_js
|
addScript $ StaticR js_utils_showHide_js
|
||||||
-- addScript $ StaticR js_utils_tabber_js
|
-- addScript $ StaticR js_utils_tabber_js
|
||||||
addStylesheet $ StaticR css_utils_alerts_scss
|
addStylesheet $ StaticR css_utils_alerts_scss
|
||||||
|
|||||||
@ -1,33 +0,0 @@
|
|||||||
(function() {
|
|
||||||
|
|
||||||
var UTIL_NAME = 'poc';
|
|
||||||
var UTIL_SELECTOR = '[uw-poc]';
|
|
||||||
|
|
||||||
var util = function(element) {
|
|
||||||
|
|
||||||
function _init() {
|
|
||||||
var color = 'red';
|
|
||||||
if (element.dataset.color) {
|
|
||||||
color = element.dataset.color;
|
|
||||||
}
|
|
||||||
element.style.outline = '1px solid ' + color;
|
|
||||||
}
|
|
||||||
|
|
||||||
_init();
|
|
||||||
|
|
||||||
return {
|
|
||||||
name: UTIL_NAME,
|
|
||||||
element: element,
|
|
||||||
destroy: function() {},
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
if (UtilRegistry) {
|
|
||||||
UtilRegistry.register({
|
|
||||||
name: UTIL_NAME,
|
|
||||||
selector: UTIL_SELECTOR,
|
|
||||||
setup: util,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
})();
|
|
||||||
Reference in New Issue
Block a user