card-mod-script 0.13.2 → 0.13.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 740c8b43709f696ea82eb875a37d92dc4c29aaf193c35dd084472817574dcb24
4
- data.tar.gz: cddc64356e56ede909a08cd2a6988e3f0b0f63c7e727de9bf123e2bedc5b1a25
3
+ metadata.gz: e22e166f454a635898b7e2aa3fdea0a7c602e97b0281813e404d557f5f3e89db
4
+ data.tar.gz: 8f77fb6b3c1f54135d9902d56ce0c8cac38aad0cd4620d33f291a61cafa7b853
5
5
  SHA512:
6
- metadata.gz: 0b12a2aed352d954774cb731bf79ce89ae345962343762682246abd605a253d5e8556291c49790189a7975cd558e56626007ee7b2f6117191759e94d366fb436
7
- data.tar.gz: 26181f4a51408bec334a90b4b782d68680903cb3ba68a81191d634411063747b82ab5788b4cb56980c24e5e080bbc1614223e7a7d305e8478c9ff6b24e9473bd
6
+ metadata.gz: 4431b86b7dc3050a93ffdfeccc0d44d0e9d15cba8537867653c6b623e3f8a3e790d533f0bbc0f1f59690f27117e6c96ccbad3140f57ec5cbf138262f9f6d1d69
7
+ data.tar.gz: b0c065f6ff1078d4b62dbeab2cef630216d4b3c2ea73531c56e3de725ff055b8c30c643a9d923abe6e4241c6fb680092166a73eda33be61afc35ef835c3271a7
@@ -59,7 +59,7 @@ decko.filter = (el) ->
59
59
  field.find("input, select").first().focus()
60
60
 
61
61
  @fieldValue = (field, value) ->
62
- if typeof(value) == "object"
62
+ if typeof(value) == "object" && !Array.isArray(value)
63
63
  @compoundFieldValue field, value
64
64
  else
65
65
  @simpleFieldValue field, value
@@ -61,8 +61,8 @@ $(window).ready ->
61
61
  f = targetFilter this
62
62
  if f.widget.length
63
63
  f.restrict filterableData(this)
64
- e.preventDefault()
65
- e.stopPropagation()
64
+ e.preventDefault()
65
+ e.stopPropagation()
66
66
 
67
67
  $('body').on 'click', '._filter-link', (e) ->
68
68
  f = filterFor this
@@ -1,17 +1,6 @@
1
1
  checkNameAfterTyping = null
2
2
 
3
3
  $(window).ready ->
4
- $('body').on 'click', '._renamer-updater', ->
5
- $(this).closest('form').find('#card_update_referers').val 'true'
6
-
7
- $('body').on 'submit', '._rename-form', ->
8
- f = $(this)
9
- confirm = f.find '.alert'
10
- if confirm.is ':hidden'
11
- referenceConfirm f
12
- confirm.show 'blind'
13
- false
14
-
15
4
  $('body').on 'keyup', '.name-editor input', (event) ->
16
5
  clearTimeout(checkNameAfterTyping) if checkNameAfterTyping
17
6
  input = $(this)
@@ -24,13 +13,6 @@ $(window).ready ->
24
13
  checkNameAfterTyping = null
25
14
  , 400
26
15
 
27
- referenceConfirm = (form)->
28
- confirm = form.find '._rename-reference-confirm'
29
- return unless confirm.data('referer-count') > 0
30
- confirm.show()
31
- btn = form.find '._renamer-updater'
32
- btn.show()
33
- btn.focus()
34
16
 
35
17
  checkName = (box) ->
36
18
  name = box.val()
@@ -13,9 +13,6 @@ jQuery.fn.extend
13
13
  $("._overlay-origin").removeClass("_overlay-origin")
14
14
  @replaceOverlay(overlay)
15
15
  else
16
- #@find(".tinymce-textarea").each ->
17
- # tinymce.remove("##{$(this).attr("id")}")
18
- # #tinyMCE.execCommand('mceRemoveControl', false, $(this).attr("id"))
19
16
  if @parent().hasClass("_overlay-container-placeholder")
20
17
  @parent().addClass("overlay-container")
21
18
  else
@@ -88,7 +88,7 @@ jQuery.fn.extend
88
88
  isMainOrMainModal: ->
89
89
  el = $(this)
90
90
  el = el.findOriginSlot("modal") if el.closest(".modal")[0]
91
- el.isMain()
91
+ el && el.isMain()
92
92
 
93
93
  findSlot: (selector) ->
94
94
  if selector == "modal-origin"