@concretecms/bedrock 1.4.2 → 1.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,8 +2,6 @@ import jQuery from 'jquery'
2
2
  import 'bootstrap'
3
3
  // We will be refactoring this, also it causes problems with installation.
4
4
  // import './frontend/async-thumbnail-builder'
5
- import './frontend/locations/country-data-link'
6
- import './frontend/locations/country-stateprovince-link'
7
5
 
8
6
  // Let us use Vue with our theme JS
9
7
  import VueManager from '../../../assets/cms/js/vue/Manager'
@@ -9,6 +9,9 @@ import bootbox from 'bootbox'
9
9
  class ConcreteModal {
10
10
  openExternal(url, title, options) {
11
11
  var my = this
12
+ if (!options) {
13
+ options = {}
14
+ }
12
15
  new ConcreteAjaxRequest({
13
16
  url: url,
14
17
  dataType: 'html',
@@ -130,7 +130,9 @@ window._ = _
130
130
  var target = $('a' + window.location.hash).offset()
131
131
  $('html, body').animate({ scrollTop: target.top }, 800, 'linear')
132
132
  }
133
- window.obj = oldobj
133
+ if (oldobj) {
134
+ window.obj = oldobj
135
+ }
134
136
  obj.attachBindings()
135
137
  obj.publish('conversationLoaded')
136
138
  })
@@ -1,3 +1,4 @@
1
+ /* eslint-disable eqeqeq */
1
2
  var USE_MUTATIONOBSERVER = !!(window.MutationObserver && window.MutationObserver.prototype && window.MutationObserver.prototype.observe)
2
3
 
3
4
  function loadDataForCountry(countryCode, callback) {
@@ -185,7 +186,7 @@ Link.prototype = {
185
186
  .val(spCode)
186
187
  .text(name)
187
188
 
188
- if (spCode === selectedStateprovince) {
189
+ if (spCode == selectedStateprovince) {
189
190
  $o.attr('selected', 'selected')
190
191
  }
191
192
  me.$stateprovinceSelect.append($o)
@@ -0,0 +1,2 @@
1
+ import './frontend/country-stateprovince-link'
2
+ import './frontend/country-data-link'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@concretecms/bedrock",
3
- "version": "1.4.2",
3
+ "version": "1.4.3",
4
4
  "description": "The asset framework and dependencies for Concrete CMS.",
5
5
  "scripts": {
6
6
  "lint": "standardx \"**/*.{js,vue}\" && stylelint assets/**/*.{scss,vue}",