Skip to content

Commit 68958e6

Browse files
committed
Form flow fixes, minor Codacy fixes
#1884 This is the first commit after activating the todo bot, so standby for potentially up to 70+ new automated issues...
1 parent 5897694 commit 68958e6

File tree

12 files changed

+21
-18
lines changed

12 files changed

+21
-18
lines changed

Nebula-Child/resources/sw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//BEGIN automated edits. These will be automatically overwritten.
22
var THEME_NAME = 'nebula-child';
3-
var NEBULA_VERSION = 'v6.12.1.5244'; //Wednesday, May 1, 2019 10:57:42 PM
3+
var NEBULA_VERSION = 'v6.12.2.4804'; //Thursday, May 2, 2019 11:32:09 AM
44
var OFFLINE_URL = 'https://gearside.com/nebula/offline/';
55
var OFFLINE_IMG = 'https://gearside.com/nebula/wp-content/themes/Nebula-master/assets/img/offline.svg';
66
var OFFLINE_GA_DIMENSION = 'cd2';

Nebula-Child/style.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/admin.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/critical.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/login.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/css/pre.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/js/nebula.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2209,7 +2209,7 @@ function cf7Functions(){
22092209
event: e,
22102210
category: 'CF7 Form',
22112211
action: 'Submit (Invalid)',
2212-
formID: e.detail.contactFormId || e.detail.id,
2212+
formID: e.detail.id,
22132213
formTime: nebulaTimer(e.detail.id, 'lap', 'wpcf7-submit-invalid'),
22142214
inputs: nebula.timings[e.detail.id].laps + ' inputs'
22152215
}
@@ -2254,7 +2254,7 @@ function cf7Functions(){
22542254
event: e,
22552255
category: 'CF7 Form',
22562256
action: 'Submit (Invalid)',
2257-
formID: e.detail.contactFormId || e.detail.id,
2257+
formID: e.detail.id,
22582258
formTime: nebulaTimer(e.detail.id, 'end'),
22592259
inputs: nebula.timings[e.detail.id].laps + ' inputs'
22602260
}
@@ -2277,7 +2277,7 @@ function cf7Functions(){
22772277
event: e,
22782278
category: 'CF7 Form',
22792279
action: 'Submit (Failed)',
2280-
formID: e.detail.contactFormId || e.detail.id,
2280+
formID: e.detail.id,
22812281
formTime: nebulaTimer(e.detail.id, 'end'),
22822282
inputs: nebula.timings[e.detail.id].laps + ' inputs'
22832283
}
@@ -2302,7 +2302,7 @@ function cf7Functions(){
23022302
event: e,
23032303
category: 'CF7 Form',
23042304
action: 'Submit (Success)',
2305-
formID: e.detail.contactFormId || e.detail.id,
2305+
formID: e.detail.id,
23062306
formTime: nebulaTimer(e.detail.id, 'end'),
23072307
inputs: nebula.timings[e.detail.id].laps + ' inputs'
23082308
}
@@ -2337,7 +2337,7 @@ function cf7Functions(){
23372337
event: e,
23382338
category: 'CF7 Form',
23392339
action: 'Submit (Attempt)',
2340-
formID: e.detail.contactFormId || e.detail.id,
2340+
formID: e.detail.id,
23412341
formTime: nebulaTimer(e.detail.id, 'lap', 'wpcf7-submit-attempt'),
23422342
inputs: nebula.timings[e.detail.id].laps + ' inputs'
23432343
}
@@ -3270,10 +3270,13 @@ function svgImgs(){
32703270
var theSVG = jQuery(data).find('svg'); //Get the SVG tag, ignore the rest
32713271
theSVG = theSVG.attr('id', oThis.attr('id')); //Add replaced image's ID to the new SVG
32723272
theSVG = theSVG.attr('class', oThis.attr('class') + ' replaced-svg'); //Add replaced image's classes to the new SVG
3273+
theSVG = theSVG.attr('role', 'img');
32733274
theSVG = theSVG.attr('data-original-src', oThis.attr('src')); //Add an attribute of the original SVG location
32743275
theSVG = theSVG.removeAttr('xmlns:a'); //Remove invalid XML tags
32753276
oThis.replaceWith(theSVG); //Replace image with new SVG
32763277
}, 'xml');
3278+
3279+
//@todo "Nebula" 0: Grab the alt attribute from oThis and add it as a <title> tag within the newly created <svg> element (as the first child)
32773280
}
32783281
});
32793282
}

assets/js/shortcodes.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,14 @@
7676
classes: 'widget btn nebula-icon',
7777
menu: [{
7878
text: 'Container',
79-
onclick: function() {
79+
onclick: function(){
8080
ed.focus();
8181
var shortcodeContent = ( tinyMCE.activeEditor.selection.getContent() !== '' )? tinyMCE.activeEditor.selection.getContent() : 'CONTENT_HERE';
8282
ed.selection.setContent('[container class="CLASSES" style="STYLES"]' + shortcodeContent + '[/container]');
8383
}
8484
}, {
8585
text: 'Row',
86-
onclick: function() {
86+
onclick: function(){
8787
ed.focus();
8888
var shortcodeContent = ( tinyMCE.activeEditor.selection.getContent() !== '' )? tinyMCE.activeEditor.selection.getContent() : 'CONTENT_HERE';
8989
ed.selection.setContent('[row class="CLASSES" style="STYLES"]' + shortcodeContent + '[/row]');

assets/scss/style.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Description: Nebula is a springboard WordPress theme framework for developers. Like other WordPress startup themes, it has custom functionality built-in (like shortcodes, styles, and JS/PHP functions), but unlike other themes Nebula is not meant for the end-user.
55
Author: Pinckney Hugo Group
66
Author URI: http://www.pinckneyhugo.com
7-
Version: 6.12.1.9568
7+
Version: 6.12.2.4808
88
License: GNU General Public License v2.0 or later
99
License URI: http://www.gnu.org/licenses/gpl-2.0.html
1010
Tags: one-column, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, threaded-comments, theme-options, sticky-post, post-formats, microformats, full-width-template, front-page-post-form, flexible-header, featured-images, featured-image-header, editor-style, custom-menu, custom-colors, accessibility-ready

inc/data/nebula_theme.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "6.12.1.9568",
2+
"version": "6.12.2.4808",
33
"details_url": "https://github.com/chrisblakley/Nebula/commits/master",
44
"download_url": "https://github.com/chrisblakley/Nebula/archive/master.zip"
55
}

0 commit comments

Comments
 (0)