Skip to content

Commit

Permalink
Fix missing rewording
Browse files Browse the repository at this point in the history
  • Loading branch information
PhMemmel committed Oct 18, 2023
1 parent 17f2be6 commit 7ba07c0
Show file tree
Hide file tree
Showing 11 changed files with 27 additions and 25 deletions.
2 changes: 1 addition & 1 deletion amd/build/handler_input_number.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion amd/build/handler_input_number.min.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions amd/src/handler_input_number.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ import {call as fetchMany} from 'core/ajax';
import Log from 'core/log';

export const init = (uniqueID) => {

console.log('bla')
var up = document.getElementById('up_' + uniqueID);
console.log(up)
var down = document.getElementById('down_' + uniqueID);

if (up) {
Expand All @@ -18,6 +19,7 @@ export const init = (uniqueID) => {
* Count num input up.
*/
function countUp() {
console.log("bla")
var id = this.dataset.id;
if (Math.floor(document.getElementById(id).dataset.min) <= Math.floor(document.getElementById(id).value) + 1) {
document.getElementById(id).value = Math.floor(document.getElementById(id).value) + 1;
Expand All @@ -42,7 +44,7 @@ export const init = (uniqueID) => {
* @param {*} id
*/
function store(obj, id) {

console.log(obj)
var pageid = obj.dataset.pageid;
var ajaxmethod = obj.dataset.ajaxmethod;
var inputname = obj.dataset.name;
Expand Down
2 changes: 1 addition & 1 deletion templates/elements/snippet_button_icon.mustache
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<button
class="mootimeter-btn mootimeter-btn-icon {{mtm-button-icon-additionalclass}} {{#mtm-button-icon-active}} active {{/mtm-button-icon-active}}"
{{#mtm-button-icon-ajaxmethode}}data-ajaxmethode="{{mtm-button-icon-ajaxmethode}}"{{/mtm-button-icon-ajaxmethode}}
{{#mtm-button-icon-ajaxmethod}}data-ajaxmethod="{{mtm-button-icon-ajaxmethod}}"{{/mtm-button-icon-ajaxmethod}}
{{#mtm-button-icon-id}}id="{{mtm-button-icon-id}}"{{/mtm-button-icon-id}}
{{{mtm-button-icon-dataset}}}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{{#button_icon_only_transparent_id}} id="{{button_icon_only_transparent_id}}" {{/button_icon_only_transparent_id}}
class="mootimeter-btn-icon-only-transparent {{button_icon_only_transparent_additionalclass}}"
{{{button_icon_only_transparent_dataset}}}
{{#button_icon_only_transparent_ajaxmethode}}data-ajaxmethode="{{button_icon_only_transparent_ajaxmethode}}"{{/button_icon_only_transparent_ajaxmethode}}
{{#button_icon_only_transparent_ajaxmethod}}data-ajaxmethod="{{button_icon_only_transparent_ajaxmethod}}"{{/button_icon_only_transparent_ajaxmethod}}
>
<i class="icon fa {{button_icon_only_transparent_icon}} fa-light" aria-hidden="true"></i>
</button>
6 changes: 3 additions & 3 deletions templates/elements/snippet_checkbox_switch.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
{{dataset}}
{{#name}}name="{{name}}"{{/name}}

{{#ajaxmethode}}data-ajaxmethode="{{ajaxmethode}}"{{/ajaxmethode}}
{{#ajaxmethod}}data-ajaxmethod="{{ajaxmethod}}"{{/ajaxmethod}}
{{#pageid}}data-pageid="{{pageid}}"{{/pageid}}
{{#name}}data-name="{{name}}"{{/name}}
>
{{title}}
</label>
{{#ajaxmethode}}
{{#ajaxmethod}}
{{#js}}
require(['mod_mootimeter/handler_input_checkbox_switch'], (module) => module.init("{{id}}"));
{{/js}}
{{/ajaxmethode}}
{{/ajaxmethod}}
6 changes: 3 additions & 3 deletions templates/elements/snippet_checkbox_with_label.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{{#cb_with_label_value}} value="{{cb_with_label_value}}" {{/cb_with_label_value}}
{{#cb_with_label_name}}name="{{cb_with_label_name}}"{{/cb_with_label_name}}

{{#cb_with_label_ajaxmethode}}data-ajaxmethode="{{cb_with_label_ajaxmethode}}"{{/cb_with_label_ajaxmethode}}
{{#cb_with_label_ajaxmethod}}data-ajaxmethod="{{cb_with_label_ajaxmethod}}"{{/cb_with_label_ajaxmethod}}
{{#pageid}}data-pageid="{{pageid}}"{{/pageid}}
{{#cb_with_label_name}}data-name="{{cb_with_label_name}}"{{/cb_with_label_name}}
/>
Expand All @@ -23,8 +23,8 @@
</span>
</label>
</div>
{{#cb_with_label_ajaxmethode}}
{{#cb_with_label_ajaxmethod}}
{{#js}}
require(['mod_mootimeter/handler_input_checkbox_switch'], (module) => module.init("{{cb_with_label_id}}"));
{{/js}}
{{/cb_with_label_ajaxmethode}}
{{/cb_with_label_ajaxmethod}}
6 changes: 3 additions & 3 deletions templates/elements/snippet_checkbox_without_label.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{{#mtm-cb-without-label-name}}name="{{mtm-cb-without-label-name}}"{{/mtm-cb-without-label-name}}

{{#pageid}}data-pageid="{{pageid}}"{{/pageid}}
{{#mtm-cb-without-label-ajaxmethode}}data-ajaxmethode="{{mtm-cb-without-label-ajaxmethode}}"{{/mtm-cb-without-label-ajaxmethode}}
{{#mtm-cb-without-label-ajaxmethod}}data-ajaxmethod="{{mtm-cb-without-label-ajaxmethod}}"{{/mtm-cb-without-label-ajaxmethod}}
{{#mtm-cb-without-label-name}}data-name="{{mtm-cb-without-label-name}}"{{/mtm-cb-without-label-name}}
{{dataset}}
/>
Expand All @@ -17,8 +17,8 @@
</span>
</label>
</div>
{{#mtm-cb-without-label-ajaxmethode}}
{{#mtm-cb-without-label-ajaxmethod}}
{{#js}}
require(['mod_mootimeter/handler_input_checkbox_switch'], (module) => module.init("{{mtm-cb-without-label-id}}"));
{{/js}}
{{/mtm-cb-without-label-ajaxmethode}}
{{/mtm-cb-without-label-ajaxmethod}}
6 changes: 3 additions & 3 deletions templates/elements/snippet_input.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
{{#mtm-input-value}}value="{{mtm-input-value}}"{{/mtm-input-value}}
{{#mtm-input-placeholder}}placeholder="{{mtm-input-placeholder}}"{{/mtm-input-placeholder}}
{{{dataset}}}
{{#ajaxmethode}}data-ajaxmethode="{{ajaxmethode}}"{{/ajaxmethode}}
{{#ajaxmethod}}data-ajaxmethod="{{ajaxmethod}}"{{/ajaxmethod}}
{{#pageid}}data-pageid="{{pageid}}"{{/pageid}}
{{#mtm-input-name}}data-name="{{mtm-input-name}}"{{/mtm-input-name}}
/>

{{#ajaxmethode}}
{{#ajaxmethod}}
{{#js}}
require(['mod_mootimeter/handler_input'], (module) => module.init("{{mtm-input-id}}"));
{{/js}}
{{/ajaxmethode}}
{{/ajaxmethod}}
8 changes: 4 additions & 4 deletions templates/elements/snippet_number_input.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
aria-hidden="true"
{{#id}} id="up_{{id}}"{{/id}}
data-id="{{id}}"
{{#ajaxmethode}}data-ajaxmethode="{{ajaxmethode}}"{{/ajaxmethode}}
{{#ajaxmethod}}data-ajaxmethod="{{ajaxmethod}}"{{/ajaxmethod}}
{{#pageid}}data-pageid="{{pageid}}"{{/pageid}}
{{#name}}data-name="{{name}}"{{/name}}
>
Expand All @@ -25,7 +25,7 @@
aria-hidden="true"
{{#id}} id="down_{{id}}"{{/id}}
data-id="{{id}}"
{{#ajaxmethode}}data-ajaxmethode="{{ajaxmethode}}"{{/ajaxmethode}}
{{#ajaxmethod}}data-ajaxmethod="{{ajaxmethod}}"{{/ajaxmethod}}
{{#pageid}}data-pageid="{{pageid}}"{{/pageid}}
{{#name}}data-name="{{name}}"{{/name}}
>
Expand All @@ -35,8 +35,8 @@
{{title}}
</label>
</div>
{{#ajaxmethode}}
{{#ajaxmethod}}
{{#js}}
require(['mod_mootimeter/handler_input_number'], (module) => module.init("{{id}}"));
{{/js}}
{{/ajaxmethode}}
{{/ajaxmethod}}
6 changes: 3 additions & 3 deletions templates/elements/snippet_radio_button.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
{{#rb_with_label_value}} value="{{rb_with_label_value}}" {{/rb_with_label_value}}
{{#rb_with_label_name}}name="{{rb_with_label_name}}"{{/rb_with_label_name}}

{{#rb_with_label_ajaxmethode}}data-ajaxmethode="{{rb_with_label_ajaxmethode}}"{{/rb_with_label_ajaxmethode}}
{{#rb_with_label_ajaxmethod}}data-ajaxmethod="{{rb_with_label_ajaxmethod}}"{{/rb_with_label_ajaxmethod}}
{{#pageid}}data-pageid="{{pageid}}"{{/pageid}}
{{#rb_with_label_name}}data-name="{{rb_with_label_name}}"{{/rb_with_label_name}}

Expand All @@ -27,8 +27,8 @@
</span>
</label>
</div>
{{#rb_with_label_ajaxmethode}}
{{#rb_with_label_ajaxmethod}}
{{#js}}
require(['mod_mootimeter/handler_input_checkbox_switch'], (module) => module.init("{{rb_with_label_id}}"));
{{/js}}
{{/rb_with_label_ajaxmethode}}
{{/rb_with_label_ajaxmethod}}

0 comments on commit 7ba07c0

Please sign in to comment.