1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-13 10:15:28 +02:00

Update Modules/ProcessModules to skip showing configurable modules with no visible configuration fields. Plus a few other small additions.

This commit is contained in:
Ryan Cramer
2016-10-20 06:58:28 -04:00
parent 4a26b774bf
commit 4060934bae
18 changed files with 267 additions and 66 deletions

View File

@@ -1253,7 +1253,7 @@ jQuery(document).ready(function($) {
$(window).resize(windowResized);
$("ul.WireTabs > li > a").click(tabClicked);
$(document).on('reload', '.Inputfield', function(event) {
$(document).on('reload', '.Inputfield', function(event, extraData) {
var $t = $(this);
var $form = $t.closest('form');
var fieldName = $t.attr('id').replace('wrap_Inputfield_', '');
@@ -1265,6 +1265,11 @@ jQuery(document).ready(function($) {
}
url += url.indexOf('?') > -1 ? '&' : '?';
url += 'field=' + fieldName + '&reloadInputfieldAjax=' + fieldName;
if(typeof extraData != "undefined") {
if(typeof extraData['queryString'] != "undefined") {
url += '&' + extraData['queryString'];
}
}
consoleLog('Inputfield reload: ' + fieldName);
$.get(url, function(data) {
var id = $t.attr('id');

File diff suppressed because one or more lines are too long