kiteditor 1.0.13 → 1.0.14

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,7 +12,7 @@ class @Mercury.Snippet
12
12
 
13
13
 
14
14
  @create: (name, options) ->
15
- identity = "block_#{@all.length}"
15
+ identity = "block_#{new Date().getTime()}"
16
16
  instance = new Mercury.Snippet(name, identity, options)
17
17
  @all.push(instance)
18
18
  return instance
@@ -54,7 +54,6 @@ class @Mercury.Snippet
54
54
  # @options_to_save = @options
55
55
  save_data = jQuery.extend({}, @options)
56
56
  save_data['identity'] = @identity
57
- console.debug("Using identity: " + @identity)
58
57
  jQuery.ajax Mercury.config.snippets.previewUrl.replace(':name', @name), {
59
58
  headers: Mercury.ajaxHeaders()
60
59
  type: Mercury.config.snippets.method
@@ -70,8 +69,7 @@ class @Mercury.Snippet
70
69
 
71
70
  displayOptions: ->
72
71
  Mercury.snippet = @
73
- # @options = @options_to_save if @options_to_save
74
- Mercury.modal Mercury.config.snippets.optionsUrl.replace(':name', @name), {
72
+ Mercury.modal (Mercury.config.snippets.optionsUrl.replace(':name', @name) + "&instance_id=#{@identity}"), {
75
73
  title: 'Block Options',
76
74
  handler: 'insertSnippet',
77
75
  loadType: Mercury.config.snippets.method,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kiteditor
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.13
4
+ version: 1.0.14
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-12-12 00:00:00.000000000 Z
13
+ date: 2013-12-17 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails