modeljs 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -71,6 +71,7 @@ Model.prototype = {
71
71
  back_button_click: false, // Click handler for the back button
72
72
  show_delete_button: true, // Whether or not we should show the delete button on the main model
73
73
  show_back_button: true, // Whether or not we should show the back button on the main model
74
+ finished_loading: false, // When the model finishes loading initially
74
75
 
75
76
  // Urls of CRUD events
76
77
  create_url: false,
@@ -126,7 +127,10 @@ Model.prototype = {
126
127
 
127
128
  if (!this.is_listing && $('#' + this.name + '_listing_container').length && this.listing_url) this.listing();
128
129
  if ($('#' + this.name + '_new_container').length) this.add_form();
129
- else if ($('#' + this.name + '_' + this.id + '_container').length) this.edit_form();
130
+ else if ($('#' + this.name + '_' + this.id + '_container').length) this.edit_form();
131
+
132
+ if (this.finished_loading)
133
+ this.finished_loading();
130
134
  },
131
135
 
132
136
  listing: function()
@@ -1,3 +1,3 @@
1
1
  module Modeljs
2
- VERSION = '0.0.9'
2
+ VERSION = '0.0.10'
3
3
  end
metadata CHANGED
@@ -1,71 +1,70 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: modeljs
3
- version: !ruby/object:Gem::Version
4
- version: 0.0.9
5
- prerelease:
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 0
8
+ - 10
9
+ version: 0.0.10
6
10
  platform: ruby
7
- authors:
11
+ authors:
8
12
  - William Barry
9
13
  autorequire:
10
14
  bindir: bin
11
15
  cert_chain: []
12
- date: 2013-06-27 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
16
+
17
+ date: 2013-07-02 00:00:00 -05:00
18
+ default_executable:
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
15
21
  name: rails
16
- requirement: !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ~>
20
- - !ruby/object:Gem::Version
21
- version: 3.2.13
22
- type: :runtime
23
22
  prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
23
+ requirement: &id001 !ruby/object:Gem::Requirement
24
+ requirements:
27
25
  - - ~>
28
- - !ruby/object:Gem::Version
26
+ - !ruby/object:Gem::Version
27
+ segments:
28
+ - 3
29
+ - 2
30
+ - 13
29
31
  version: 3.2.13
30
- - !ruby/object:Gem::Dependency
31
- name: jquery-rails
32
- requirement: !ruby/object:Gem::Requirement
33
- none: false
34
- requirements:
35
- - - ! '>='
36
- - !ruby/object:Gem::Version
37
- version: '0'
38
32
  type: :runtime
33
+ version_requirements: *id001
34
+ - !ruby/object:Gem::Dependency
35
+ name: jquery-rails
39
36
  prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ! '>='
44
- - !ruby/object:Gem::Version
45
- version: '0'
46
- - !ruby/object:Gem::Dependency
47
- name: activesupport
48
- requirement: !ruby/object:Gem::Requirement
49
- none: false
50
- requirements:
51
- - - ! '>='
52
- - !ruby/object:Gem::Version
53
- version: '0'
37
+ requirement: &id002 !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - ">="
40
+ - !ruby/object:Gem::Version
41
+ segments:
42
+ - 0
43
+ version: "0"
54
44
  type: :runtime
45
+ version_requirements: *id002
46
+ - !ruby/object:Gem::Dependency
47
+ name: activesupport
55
48
  prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
59
- - - ! '>='
60
- - !ruby/object:Gem::Version
61
- version: '0'
49
+ requirement: &id003 !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ segments:
54
+ - 0
55
+ version: "0"
56
+ type: :runtime
57
+ version_requirements: *id003
62
58
  description: A javascript model framework.
63
- email:
59
+ email:
64
60
  - william@nine.is
65
61
  executables: []
62
+
66
63
  extensions: []
64
+
67
65
  extra_rdoc_files: []
68
- files:
66
+
67
+ files:
69
68
  - app/assets/images/loading.gif
70
69
  - app/assets/images/loading_small.gif
71
70
  - app/assets/javascripts/attribute/checkbox-multiple.js
@@ -98,28 +97,35 @@ files:
98
97
  - MIT-LICENSE
99
98
  - Rakefile
100
99
  - README.md
100
+ has_rdoc: true
101
101
  homepage: http://github.com/williambarry007/modeljs
102
102
  licenses: []
103
+
103
104
  post_install_message:
104
105
  rdoc_options: []
105
- require_paths:
106
+
107
+ require_paths:
106
108
  - lib
107
- required_ruby_version: !ruby/object:Gem::Requirement
108
- none: false
109
- requirements:
110
- - - ! '>='
111
- - !ruby/object:Gem::Version
112
- version: '0'
113
- required_rubygems_version: !ruby/object:Gem::Requirement
114
- none: false
115
- requirements:
116
- - - ! '>='
117
- - !ruby/object:Gem::Version
118
- version: '0'
109
+ required_ruby_version: !ruby/object:Gem::Requirement
110
+ requirements:
111
+ - - ">="
112
+ - !ruby/object:Gem::Version
113
+ segments:
114
+ - 0
115
+ version: "0"
116
+ required_rubygems_version: !ruby/object:Gem::Requirement
117
+ requirements:
118
+ - - ">="
119
+ - !ruby/object:Gem::Version
120
+ segments:
121
+ - 0
122
+ version: "0"
119
123
  requirements: []
124
+
120
125
  rubyforge_project:
121
- rubygems_version: 1.8.25
126
+ rubygems_version: 1.3.6
122
127
  signing_key:
123
128
  specification_version: 3
124
129
  summary: A javascript model framework.
125
130
  test_files: []
131
+