sbdevcore 0.2.0 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/.idea/workspace.xml CHANGED
@@ -1,7 +1,9 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <project version="4">
3
3
  <component name="ChangeListManager" verified="true">
4
- <list default="true" readonly="true" id="b8b56ec4-45f8-4144-afba-a1bc2f2f511f" name="Default" comment="" />
4
+ <list default="true" readonly="true" id="b8b56ec4-45f8-4144-afba-a1bc2f2f511f" name="Default" comment="">
5
+ <change type="MODIFICATION" beforePath="$PROJECT_DIR$/lib/sbdevcore/version.rb" afterPath="$PROJECT_DIR$/lib/sbdevcore/version.rb" />
6
+ </list>
5
7
  <ignored path=".idea/" />
6
8
  <option name="TRACKING_ENABLED" value="true" />
7
9
  <option name="SHOW_DIALOG" value="false" />
@@ -23,28 +25,28 @@
23
25
  <component name="FileColors" enabled="true" enabledForTabs="true" />
24
26
  <component name="FileEditorManager">
25
27
  <leaf>
26
- <file leaf-file-name="seeds.rb" pinned="false" current="false" current-in-tab="false">
27
- <entry file="file://$PROJECT_DIR$/db/seeds.rb">
28
+ <file leaf-file-name="sbdevcore-tools.js" pinned="false" current="false" current-in-tab="false">
29
+ <entry file="file://$PROJECT_DIR$/app/assets/javascripts/sbdevcore-tools.js">
28
30
  <provider selected="true" editor-type-id="text-editor">
29
- <state line="52" column="22" selection-start="2941" selection-end="2941" vertical-scroll-proportion="0.0">
31
+ <state line="110" column="10" selection-start="2708" selection-end="2708" vertical-scroll-proportion="0.0">
30
32
  <folding />
31
33
  </state>
32
34
  </provider>
33
35
  </entry>
34
36
  </file>
35
- <file leaf-file-name="photo.rb" pinned="false" current="false" current-in-tab="false">
36
- <entry file="file://$PROJECT_DIR$/app/models/photo.rb">
37
+ <file leaf-file-name="sbdev-ajax.js" pinned="false" current="false" current-in-tab="false">
38
+ <entry file="file://$PROJECT_DIR$/app/assets/javascripts/sbdev-ajax.js">
37
39
  <provider selected="true" editor-type-id="text-editor">
38
- <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
40
+ <state line="27" column="27" selection-start="889" selection-end="889" vertical-scroll-proportion="0.0">
39
41
  <folding />
40
42
  </state>
41
43
  </provider>
42
44
  </entry>
43
45
  </file>
44
- <file leaf-file-name="downloadables_controller.rb" pinned="false" current="false" current-in-tab="false">
45
- <entry file="file://$PROJECT_DIR$/app/controllers/downloadables_controller.rb">
46
+ <file leaf-file-name="install_generator.rb" pinned="false" current="false" current-in-tab="false">
47
+ <entry file="file://$PROJECT_DIR$/lib/generators/sbdevcore/install_generator.rb">
46
48
  <provider selected="true" editor-type-id="text-editor">
47
- <state line="11" column="0" selection-start="402" selection-end="402" vertical-scroll-proportion="0.0">
49
+ <state line="29" column="0" selection-start="912" selection-end="912" vertical-scroll-proportion="0.0">
48
50
  <folding />
49
51
  </state>
50
52
  </provider>
@@ -53,14 +55,23 @@
53
55
  <file leaf-file-name="version.rb" pinned="false" current="true" current-in-tab="true">
54
56
  <entry file="file://$PROJECT_DIR$/lib/sbdevcore/version.rb">
55
57
  <provider selected="true" editor-type-id="text-editor">
56
- <state line="1" column="18" selection-start="35" selection-end="35" vertical-scroll-proportion="0.024439918">
58
+ <state line="1" column="18" selection-start="35" selection-end="35" vertical-scroll-proportion="0.025423728">
59
+ <folding />
60
+ </state>
61
+ </provider>
62
+ </entry>
63
+ </file>
64
+ <file leaf-file-name="show.html.haml" pinned="false" current="false" current-in-tab="false">
65
+ <entry file="file://$PROJECT_DIR$/app/views/photos/show.html.haml">
66
+ <provider selected="true" editor-type-id="text-editor">
67
+ <state line="3" column="24" selection-start="102" selection-end="113" vertical-scroll-proportion="0.0">
57
68
  <folding />
58
69
  </state>
59
70
  </provider>
60
71
  </entry>
61
72
  </file>
62
- <file leaf-file-name="_show.html.haml" pinned="false" current="false" current-in-tab="false">
63
- <entry file="file://$PROJECT_DIR$/app/views/photos/_show.html.haml">
73
+ <file leaf-file-name="application.html.haml" pinned="false" current="false" current-in-tab="false">
74
+ <entry file="file://$PROJECT_DIR$/app/views/layouts/application.html.haml">
64
75
  <provider selected="true" editor-type-id="text-editor">
65
76
  <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
66
77
  <folding />
@@ -81,21 +92,21 @@
81
92
  <component name="IdeDocumentHistory">
82
93
  <option name="changedFiles">
83
94
  <list>
84
- <option value="$PROJECT_DIR$/app/controllers/sbdev_core_controller.rb" />
85
- <option value="$PROJECT_DIR$/app/views/indices/_show.html.haml" />
86
- <option value="$PROJECT_DIR$/app/views/photos/_show.html.haml" />
87
- <option value="$PROJECT_DIR$/app/views/downloadables/_show.html.haml" />
88
- <option value="$PROJECT_DIR$/app/views/texts/_show.html.haml" />
89
- <option value="$PROJECT_DIR$/app/views/videos/_show.html.haml" />
90
- <option value="$PROJECT_DIR$/app/views/application/_secondary_nav.html.haml" />
95
+ <option value="$PROJECT_DIR$/app/helpers/layout_helper.rb" />
91
96
  <option value="$PROJECT_DIR$/app/views/layouts/application.html.haml" />
92
- <option value="$PROJECT_DIR$/app/assets/stylesheets/_sbdev_core.scss" />
93
- <option value="$PROJECT_DIR$/app/assets/stylesheets/_overlay.scss" />
97
+ <option value="$PROJECT_DIR$/app/views/indices/_show.html.haml" />
98
+ <option value="$PROJECT_DIR$/lib/tasks/sbdevcore.rake" />
99
+ <option value="$PROJECT_DIR$/app/controllers/sbdev_core_controller.rb" />
100
+ <option value="$PROJECT_DIR$/app/views/sbdev_core/show.html.haml" />
101
+ <option value="$PROJECT_DIR$/app/views/sbdev_core/index.html.haml" />
102
+ <option value="$PROJECT_DIR$/db/seeds.rb" />
103
+ <option value="$PROJECT_DIR$/app/assets/javascripts/sbdevcore.js" />
104
+ <option value="$PROJECT_DIR$/app/assets/javascripts/sbdevcore-tools.js" />
94
105
  <option value="$PROJECT_DIR$/lib/generators/sbdevcore/templates/application/_nav.html.haml" />
106
+ <option value="$PROJECT_DIR$/app/views/indices/show.html.haml" />
107
+ <option value="$PROJECT_DIR$/app/views/application/_secondary_nav.html.haml" />
108
+ <option value="$PROJECT_DIR$/lib/generators/sbdevcore/install_generator.rb" />
95
109
  <option value="$PROJECT_DIR$/app/assets/javascripts/sbdev-ajax.js" />
96
- <option value="$PROJECT_DIR$/app/views/downloadables/new.html.haml" />
97
- <option value="$PROJECT_DIR$/app/views/photos/new.html.haml" />
98
- <option value="$PROJECT_DIR$/app/assets/javascripts/sbdevcore-tools.js" />
99
110
  <option value="$PROJECT_DIR$/lib/sbdevcore/version.rb" />
100
111
  </list>
101
112
  </option>
@@ -126,9 +137,8 @@
126
137
  <sortByType />
127
138
  </navigator>
128
139
  <panes>
129
- <pane id="RailsProjectView" />
130
- <pane id="Favorites" />
131
140
  <pane id="Scope" />
141
+ <pane id="Favorites" />
132
142
  <pane id="ProjectPane">
133
143
  <subPane>
134
144
  <PATH>
@@ -151,18 +161,177 @@
151
161
  <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
152
162
  </PATH_ELEMENT>
153
163
  </PATH>
164
+ <PATH>
165
+ <PATH_ELEMENT>
166
+ <option name="myItemId" value="sbdevcore" />
167
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
168
+ </PATH_ELEMENT>
169
+ <PATH_ELEMENT>
170
+ <option name="myItemId" value="sbdevcore" />
171
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
172
+ </PATH_ELEMENT>
173
+ <PATH_ELEMENT>
174
+ <option name="myItemId" value="lib" />
175
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
176
+ </PATH_ELEMENT>
177
+ </PATH>
178
+ <PATH>
179
+ <PATH_ELEMENT>
180
+ <option name="myItemId" value="sbdevcore" />
181
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
182
+ </PATH_ELEMENT>
183
+ <PATH_ELEMENT>
184
+ <option name="myItemId" value="sbdevcore" />
185
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
186
+ </PATH_ELEMENT>
187
+ <PATH_ELEMENT>
188
+ <option name="myItemId" value="lib" />
189
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
190
+ </PATH_ELEMENT>
191
+ <PATH_ELEMENT>
192
+ <option name="myItemId" value="tasks" />
193
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
194
+ </PATH_ELEMENT>
195
+ </PATH>
196
+ <PATH>
197
+ <PATH_ELEMENT>
198
+ <option name="myItemId" value="sbdevcore" />
199
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
200
+ </PATH_ELEMENT>
201
+ <PATH_ELEMENT>
202
+ <option name="myItemId" value="sbdevcore" />
203
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
204
+ </PATH_ELEMENT>
205
+ <PATH_ELEMENT>
206
+ <option name="myItemId" value="lib" />
207
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
208
+ </PATH_ELEMENT>
209
+ <PATH_ELEMENT>
210
+ <option name="myItemId" value="sbdevcore" />
211
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
212
+ </PATH_ELEMENT>
213
+ </PATH>
214
+ <PATH>
215
+ <PATH_ELEMENT>
216
+ <option name="myItemId" value="sbdevcore" />
217
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
218
+ </PATH_ELEMENT>
219
+ <PATH_ELEMENT>
220
+ <option name="myItemId" value="sbdevcore" />
221
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
222
+ </PATH_ELEMENT>
223
+ <PATH_ELEMENT>
224
+ <option name="myItemId" value="config" />
225
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
226
+ </PATH_ELEMENT>
227
+ </PATH>
228
+ <PATH>
229
+ <PATH_ELEMENT>
230
+ <option name="myItemId" value="sbdevcore" />
231
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
232
+ </PATH_ELEMENT>
233
+ <PATH_ELEMENT>
234
+ <option name="myItemId" value="sbdevcore" />
235
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
236
+ </PATH_ELEMENT>
237
+ <PATH_ELEMENT>
238
+ <option name="myItemId" value="app" />
239
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
240
+ </PATH_ELEMENT>
241
+ <PATH_ELEMENT>
242
+ <option name="myItemId" value="views" />
243
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
244
+ </PATH_ELEMENT>
245
+ </PATH>
246
+ <PATH>
247
+ <PATH_ELEMENT>
248
+ <option name="myItemId" value="sbdevcore" />
249
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
250
+ </PATH_ELEMENT>
251
+ <PATH_ELEMENT>
252
+ <option name="myItemId" value="sbdevcore" />
253
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
254
+ </PATH_ELEMENT>
255
+ <PATH_ELEMENT>
256
+ <option name="myItemId" value="app" />
257
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
258
+ </PATH_ELEMENT>
259
+ <PATH_ELEMENT>
260
+ <option name="myItemId" value="views" />
261
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
262
+ </PATH_ELEMENT>
263
+ <PATH_ELEMENT>
264
+ <option name="myItemId" value="sbdev_core" />
265
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
266
+ </PATH_ELEMENT>
267
+ </PATH>
268
+ <PATH>
269
+ <PATH_ELEMENT>
270
+ <option name="myItemId" value="sbdevcore" />
271
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
272
+ </PATH_ELEMENT>
273
+ <PATH_ELEMENT>
274
+ <option name="myItemId" value="sbdevcore" />
275
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
276
+ </PATH_ELEMENT>
277
+ <PATH_ELEMENT>
278
+ <option name="myItemId" value="app" />
279
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
280
+ </PATH_ELEMENT>
281
+ <PATH_ELEMENT>
282
+ <option name="myItemId" value="views" />
283
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
284
+ </PATH_ELEMENT>
285
+ <PATH_ELEMENT>
286
+ <option name="myItemId" value="indices" />
287
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
288
+ </PATH_ELEMENT>
289
+ </PATH>
290
+ <PATH>
291
+ <PATH_ELEMENT>
292
+ <option name="myItemId" value="sbdevcore" />
293
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
294
+ </PATH_ELEMENT>
295
+ <PATH_ELEMENT>
296
+ <option name="myItemId" value="sbdevcore" />
297
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
298
+ </PATH_ELEMENT>
299
+ <PATH_ELEMENT>
300
+ <option name="myItemId" value="app" />
301
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
302
+ </PATH_ELEMENT>
303
+ </PATH>
304
+ <PATH>
305
+ <PATH_ELEMENT>
306
+ <option name="myItemId" value="sbdevcore" />
307
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
308
+ </PATH_ELEMENT>
309
+ <PATH_ELEMENT>
310
+ <option name="myItemId" value="sbdevcore" />
311
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
312
+ </PATH_ELEMENT>
313
+ <PATH_ELEMENT>
314
+ <option name="myItemId" value="app" />
315
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
316
+ </PATH_ELEMENT>
317
+ <PATH_ELEMENT>
318
+ <option name="myItemId" value="assets" />
319
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
320
+ </PATH_ELEMENT>
321
+ </PATH>
154
322
  </subPane>
155
323
  </pane>
324
+ <pane id="RailsProjectView" />
156
325
  </panes>
157
326
  </component>
158
327
  <component name="PropertiesComponent">
159
328
  <property name="options.splitter.main.proportions" value="0.3" />
160
- <property name="recentsLimit" value="5" />
161
329
  <property name="options.lastSelected" value="org.jetbrains.plugins.ruby.settings.RubyIdeSdkConfigurable" />
330
+ <property name="recentsLimit" value="5" />
162
331
  <property name="last_opened_file_path" value="$PROJECT_DIR$/../../templates" />
163
- <property name="options.splitter.details.proportions" value="0.2" />
164
- <property name="options.searchVisible" value="true" />
165
332
  <property name="GoToClass.includeJavaFiles" value="false" />
333
+ <property name="options.searchVisible" value="true" />
334
+ <property name="options.splitter.details.proportions" value="0.2" />
166
335
  </component>
167
336
  <component name="RunManager" selected="Rails.Development: core">
168
337
  <configuration default="true" type="RakeRunConfigurationType" factoryName="Rake">
@@ -367,21 +536,21 @@
367
536
  </component>
368
537
  <component name="ToolWindowManager">
369
538
  <frame x="0" y="22" width="1436" height="878" extended-state="0" />
370
- <editor active="false" />
539
+ <editor active="true" />
371
540
  <layout>
372
541
  <window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32908162" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
373
542
  <window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.32908162" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
374
543
  <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
544
+ <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32908162" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
375
545
  <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="true" content_ui="tabs" />
376
546
  <window_info id="Dependency Viewer" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
377
- <window_info id="Project" active="true" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.3293201" sideWeight="0.6619898" order="0" side_tool="false" content_ui="tabs" />
547
+ <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.3293201" sideWeight="0.6619898" order="0" side_tool="false" content_ui="tabs" />
378
548
  <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
379
549
  <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
380
550
  <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32908162" sideWeight="0.5" order="7" side_tool="false" content_ui="tabs" />
381
551
  <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
382
552
  <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
383
553
  <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
384
- <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32908162" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
385
554
  <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
386
555
  <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
387
556
  <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
@@ -400,7 +569,7 @@
400
569
  <option name="ENABLE_BACKGROUND_PROCESSES" value="true" />
401
570
  <option name="CHANGED_ON_SERVER_INTERVAL" value="5" />
402
571
  <option name="FORCE_NON_EMPTY_COMMENT" value="false" />
403
- <option name="LAST_COMMIT_MESSAGE" value="ajax" />
572
+ <option name="LAST_COMMIT_MESSAGE" value="ajax history" />
404
573
  <option name="MAKE_NEW_CHANGELIST_ACTIVE" value="true" />
405
574
  <option name="OPTIMIZE_IMPORTS_BEFORE_PROJECT_COMMIT" value="false" />
406
575
  <option name="CHECK_FILES_UP_TO_DATE_BEFORE_COMMIT" value="false" />
@@ -425,6 +594,7 @@
425
594
  <MESSAGE value="typography" />
426
595
  <MESSAGE value="forms and inheritable&#10;" />
427
596
  <MESSAGE value="ajax" />
597
+ <MESSAGE value="ajax history" />
428
598
  </component>
429
599
  <component name="XDebuggerManager">
430
600
  <breakpoint-manager>
@@ -437,108 +607,114 @@
437
607
  </breakpoint-manager>
438
608
  </component>
439
609
  <component name="editorHistoryManager">
440
- <entry file="file://$PROJECT_DIR$/app/assets/javascripts/sbdev-ajax.js">
610
+ <entry file="file://$PROJECT_DIR$/db/seeds.rb">
441
611
  <provider selected="true" editor-type-id="text-editor">
442
- <state line="12" column="0" selection-start="396" selection-end="396" vertical-scroll-proportion="0.29327902">
612
+ <state line="59" column="78" selection-start="3228" selection-end="3228" vertical-scroll-proportion="1.4873949">
443
613
  <folding />
444
614
  </state>
445
615
  </provider>
446
616
  </entry>
447
- <entry file="file://$PROJECT_DIR$/app/controllers/sbdev_core_controller.rb">
617
+ <entry file="file://$PROJECT_DIR$/app/views/application/_secondary_nav.html.haml">
448
618
  <provider selected="true" editor-type-id="text-editor">
449
- <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0" />
619
+ <state line="3" column="92" selection-start="231" selection-end="231" vertical-scroll-proportion="0.076271184">
620
+ <folding />
621
+ </state>
450
622
  </provider>
451
623
  </entry>
452
- <entry file="file://$PROJECT_DIR$/app/assets/stylesheets/_sbdev_core.scss">
624
+ <entry file="file://$PROJECT_DIR$/app/views/sbdev_core/show.html.haml">
453
625
  <provider selected="true" editor-type-id="text-editor">
454
- <state line="6" column="9" selection-start="129" selection-end="129" vertical-scroll-proportion="0.07739308" />
626
+ <state line="1" column="77" selection-start="171" selection-end="171" vertical-scroll-proportion="0.016282225">
627
+ <folding />
628
+ </state>
455
629
  </provider>
456
630
  </entry>
457
- <entry file="file://$PROJECT_DIR$/app/assets/stylesheets/_overlay.scss">
631
+ <entry file="file://$PROJECT_DIR$/app/views/sbdev_core/index.html.haml">
458
632
  <provider selected="true" editor-type-id="text-editor">
459
- <state line="4" column="0" selection-start="61" selection-end="61" vertical-scroll-proportion="0.09775967" />
633
+ <state line="8" column="0" selection-start="104" selection-end="272" vertical-scroll-proportion="0.1302578">
634
+ <folding />
635
+ </state>
460
636
  </provider>
461
637
  </entry>
462
- <entry file="file://$PROJECT_DIR$/app/views/videos/new.html.haml">
638
+ <entry file="file://$PROJECT_DIR$/app/views/indices/show.html.haml">
463
639
  <provider selected="true" editor-type-id="text-editor">
464
- <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
640
+ <state line="12" column="0" selection-start="510" selection-end="510" vertical-scroll-proportion="0.1904762">
465
641
  <folding />
466
642
  </state>
467
643
  </provider>
468
644
  </entry>
469
- <entry file="file://$PROJECT_DIR$/app/views/photos/edit.html.haml">
645
+ <entry file="file://$PROJECT_DIR$/app/views/indices/_show.html.haml">
470
646
  <provider selected="true" editor-type-id="text-editor">
471
- <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
647
+ <state line="19" column="13" selection-start="958" selection-end="958" vertical-scroll-proportion="0.30769232">
472
648
  <folding />
473
649
  </state>
474
650
  </provider>
475
651
  </entry>
476
- <entry file="file://$PROJECT_DIR$/app/views/photos/new.html.haml">
652
+ <entry file="file://$PROJECT_DIR$/app/controllers/sbdev_core_controller.rb">
477
653
  <provider selected="true" editor-type-id="text-editor">
478
- <state line="4" column="0" selection-start="218" selection-end="218" vertical-scroll-proportion="0.09775967">
654
+ <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
479
655
  <folding />
480
656
  </state>
481
657
  </provider>
482
658
  </entry>
483
- <entry file="file://$PROJECT_DIR$/app/views/downloadables/new.html.haml">
659
+ <entry file="file://$PROJECT_DIR$/lib/generators/sbdevcore/templates/application/_nav.html.haml">
484
660
  <provider selected="true" editor-type-id="text-editor">
485
- <state line="0" column="43" selection-start="43" selection-end="43" vertical-scroll-proportion="0.0">
661
+ <state line="2" column="27" selection-start="79" selection-end="79" vertical-scroll-proportion="0.031746034">
486
662
  <folding />
487
663
  </state>
488
664
  </provider>
489
665
  </entry>
490
- <entry file="file://$PROJECT_DIR$/app/views/contacts/_form.html.haml">
666
+ <entry file="file://$PROJECT_DIR$/lib/sbdevcore/engine.rb">
491
667
  <provider selected="true" editor-type-id="text-editor">
492
- <state line="0" column="26" selection-start="26" selection-end="45" vertical-scroll-proportion="0.0">
668
+ <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
493
669
  <folding />
494
670
  </state>
495
671
  </provider>
496
672
  </entry>
497
- <entry file="file://$PROJECT_DIR$/app/views/downloadables/edit.html.haml">
673
+ <entry file="file://$PROJECT_DIR$/lib/sbdevcore.rb">
498
674
  <provider selected="true" editor-type-id="text-editor">
499
- <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
675
+ <state line="4" column="0" selection-start="73" selection-end="73" vertical-scroll-proportion="0.09775967">
500
676
  <folding />
501
677
  </state>
502
678
  </provider>
503
679
  </entry>
504
- <entry file="file://$PROJECT_DIR$/app/assets/javascripts/sbdevcore-tools.js">
680
+ <entry file="file://$PROJECT_DIR$/app/views/photos/show.html.haml">
505
681
  <provider selected="true" editor-type-id="text-editor">
506
- <state line="165" column="103" selection-start="4277" selection-end="4277" vertical-scroll-proportion="0.6092437">
682
+ <state line="3" column="24" selection-start="102" selection-end="113" vertical-scroll-proportion="0.0">
507
683
  <folding />
508
684
  </state>
509
685
  </provider>
510
686
  </entry>
511
- <entry file="file://$PROJECT_DIR$/db/seeds.rb">
687
+ <entry file="file://$PROJECT_DIR$/app/views/layouts/application.html.haml">
512
688
  <provider selected="true" editor-type-id="text-editor">
513
- <state line="52" column="22" selection-start="2941" selection-end="2941" vertical-scroll-proportion="0.0">
689
+ <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
514
690
  <folding />
515
691
  </state>
516
692
  </provider>
517
693
  </entry>
518
- <entry file="file://$PROJECT_DIR$/app/models/photo.rb">
694
+ <entry file="file://$PROJECT_DIR$/app/assets/javascripts/sbdevcore-tools.js">
519
695
  <provider selected="true" editor-type-id="text-editor">
520
- <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
696
+ <state line="110" column="10" selection-start="2708" selection-end="2708" vertical-scroll-proportion="0.0">
521
697
  <folding />
522
698
  </state>
523
699
  </provider>
524
700
  </entry>
525
- <entry file="file://$PROJECT_DIR$/app/controllers/downloadables_controller.rb">
701
+ <entry file="file://$PROJECT_DIR$/app/assets/javascripts/sbdev-ajax.js">
526
702
  <provider selected="true" editor-type-id="text-editor">
527
- <state line="11" column="0" selection-start="402" selection-end="402" vertical-scroll-proportion="0.0">
703
+ <state line="27" column="27" selection-start="889" selection-end="889" vertical-scroll-proportion="0.0">
528
704
  <folding />
529
705
  </state>
530
706
  </provider>
531
707
  </entry>
532
- <entry file="file://$PROJECT_DIR$/app/views/photos/_show.html.haml">
708
+ <entry file="file://$PROJECT_DIR$/lib/generators/sbdevcore/install_generator.rb">
533
709
  <provider selected="true" editor-type-id="text-editor">
534
- <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
710
+ <state line="29" column="0" selection-start="912" selection-end="912" vertical-scroll-proportion="0.0">
535
711
  <folding />
536
712
  </state>
537
713
  </provider>
538
714
  </entry>
539
715
  <entry file="file://$PROJECT_DIR$/lib/sbdevcore/version.rb">
540
716
  <provider selected="true" editor-type-id="text-editor">
541
- <state line="1" column="18" selection-start="35" selection-end="35" vertical-scroll-proportion="0.024439918">
717
+ <state line="1" column="18" selection-start="35" selection-end="35" vertical-scroll-proportion="0.025423728">
542
718
  <folding />
543
719
  </state>
544
720
  </provider>
@@ -0,0 +1 @@
1
+ (function(a,b){var c=a.History=a.History||{},d=a.jQuery;if(typeof c.Adapter!="undefined")throw new Error("History.js Adapter has already been loaded...");c.Adapter={bind:function(a,b,c){d(a).bind(b,c)},trigger:function(a,b){d(a).trigger(b)},onDomLoad:function(a){d(a)}},typeof c.init!="undefined"&&c.init()})(window)
@@ -0,0 +1 @@
1
+ (function(a,b){"use strict";var c=a.document,d=a.setTimeout||d,e=a.clearTimeout||e,f=a.setInterval||f,g=a.History=a.History||{};if(typeof g.initHtml4!="undefined")throw new Error("History.js HTML4 Support has already been loaded...");g.initHtml4=function(){if(typeof g.initHtml4.initialized!="undefined")return!1;g.initHtml4.initialized=!0,g.enabled=!0,g.savedHashes=[],g.isLastHash=function(a){var b=g.getHashByIndex(),c=a===b;return c},g.saveHash=function(a){if(g.isLastHash(a))return!1;g.savedHashes.push(a);return!0},g.getHashByIndex=function(a){var b=null;typeof a=="undefined"?b=g.savedHashes[g.savedHashes.length-1]:a<0?b=g.savedHashes[g.savedHashes.length+a]:b=g.savedHashes[a];return b},g.discardedHashes={},g.discardedStates={},g.discardState=function(a,b,c){var d=g.getHashByState(a),e={discardedState:a,backState:c,forwardState:b};g.discardedStates[d]=e;return!0},g.discardHash=function(a,b,c){var d={discardedHash:a,backState:c,forwardState:b};g.discardedHashes[a]=d;return!0},g.discardedState=function(a){var b=g.getHashByState(a),c=g.discardedStates[b]||!1;return c},g.discardedHash=function(a){var b=g.discardedHashes[a]||!1;return b},g.recycleState=function(a){var b=g.getHashByState(a);g.discardedState(a)&&delete g.discardedStates[b];return!0},g.emulated.hashChange&&(g.hashChangeInit=function(){g.checkerFunction=null;var b="";if(g.isInternetExplorer()){var d="historyjs-iframe",e=c.createElement("iframe");e.setAttribute("id",d),e.style.display="none",c.body.appendChild(e),e.contentWindow.document.open(),e.contentWindow.document.close();var h="",i=!1;g.checkerFunction=function(){if(i)return!1;i=!0;var c=g.getHash()||"",d=g.unescapeHash(e.contentWindow.document.location.hash)||"";c!==b?(b=c,d!==c&&(h=d=c,e.contentWindow.document.open(),e.contentWindow.document.close(),e.contentWindow.document.location.hash=g.escapeHash(c)),g.Adapter.trigger(a,"hashchange")):d!==h&&(h=d,g.setHash(d,!1)),i=!1;return!0}}else g.checkerFunction=function(){var c=g.getHash();c!==b&&(b=c,g.Adapter.trigger(a,"hashchange"));return!0};g.intervalList.push(f(g.checkerFunction,g.options.hashChangeInterval));return!0},g.Adapter.onDomLoad(g.hashChangeInit)),g.emulated.pushState&&(g.onHashChange=function(b){var d=b&&b.newURL||c.location.href,e=g.getHashByUrl(d),f=null,h=null,i=null;if(g.isLastHash(e)){g.busy(!1);return!1}g.doubleCheckComplete(),g.saveHash(e);if(e&&g.isTraditionalAnchor(e)){g.Adapter.trigger(a,"anchorchange"),g.busy(!1);return!1}f=g.extractState(g.getFullUrl(e||c.location.href,!1),!0);if(g.isLastSavedState(f)){g.busy(!1);return!1}h=g.getHashByState(f);var j=g.discardedState(f);if(j){g.getHashByIndex(-2)===g.getHashByState(j.forwardState)?g.back(!1):g.forward(!1);return!1}g.pushState(f.data,f.title,f.url,!1);return!0},g.Adapter.bind(a,"hashchange",g.onHashChange),g.pushState=function(b,d,e,f){if(g.getHashByUrl(e))throw new Error("History.js does not support states with fragement-identifiers (hashes/anchors).");if(f!==!1&&g.busy()){g.pushQueue({scope:g,callback:g.pushState,args:arguments,queue:f});return!1}g.busy(!0);var h=g.createStateObject(b,d,e),i=g.getHashByState(h),j=g.getState(!1),k=g.getHashByState(j),l=g.getHash();g.storeState(h),g.expectedStateId=h.id,g.recycleState(h),g.setTitle(h);if(i===k){g.busy(!1);return!1}if(i!==l&&i!==g.getShortUrl(c.location.href)){g.setHash(i,!1);return!1}g.saveState(h),g.Adapter.trigger(a,"statechange"),g.busy(!1);return!0},g.replaceState=function(a,b,c,d){if(g.getHashByUrl(c))throw new Error("History.js does not support states with fragement-identifiers (hashes/anchors).");if(d!==!1&&g.busy()){g.pushQueue({scope:g,callback:g.replaceState,args:arguments,queue:d});return!1}g.busy(!0);var e=g.createStateObject(a,b,c),f=g.getState(!1),h=g.getStateByIndex(-2);g.discardState(f,e,h),g.pushState(e.data,e.title,e.url,!1);return!0},g.getHash()&&!g.emulated.hashChange&&g.Adapter.onDomLoad(function(){g.Adapter.trigger(a,"hashchange")}))},g.init()})(window)
@@ -0,0 +1 @@
1
+ (function(a,b){"use strict";var c=a.console||b,d=a.document,e=a.navigator,f=a.amplify||!1,g=a.setTimeout,h=a.clearTimeout,i=a.setInterval,j=a.clearInterval,k=a.JSON,l=a.History=a.History||{},m=a.history;k.stringify=k.stringify||k.encode,k.parse=k.parse||k.decode;if(typeof l.init!="undefined")throw new Error("History.js Core has already been loaded...");l.init=function(){if(typeof l.Adapter=="undefined")return!1;typeof l.initCore!="undefined"&&l.initCore(),typeof l.initHtml4!="undefined"&&l.initHtml4();return!0},l.initCore=function(){if(typeof l.initCore.initialized!="undefined")return!1;l.initCore.initialized=!0,l.options=l.options||{},l.options.hashChangeInterval=l.options.hashChangeInterval||100,l.options.safariPollInterval=l.options.safariPollInterval||500,l.options.doubleCheckInterval=l.options.doubleCheckInterval||500,l.options.storeInterval=l.options.storeInterval||1e3,l.options.busyDelay=l.options.busyDelay||250,l.options.debug=l.options.debug||!1,l.options.initialTitle=l.options.initialTitle||d.title,l.intervalList=[],l.clearAllIntervals=function(){var a,b=l.intervalList;if(typeof b!="undefined"&&b!==null){for(a=0;a<b.length;a++)j(b[a]);l.intervalList=null}},l.Adapter.bind(a,"beforeunload",l.clearAllIntervals),l.Adapter.bind(a,"unload",l.clearAllIntervals),l.debug=function(){(l.options.debug||!1)&&l.log.apply(l,arguments)},l.log=function(){var a=typeof c!="undefined"&&typeof c.log!="undefined"&&typeof c.log.apply!="undefined",b=d.getElementById("log"),e,f,g;if(a){var h=Array.prototype.slice.call(arguments);e=h.shift(),typeof c.debug!="undefined"?c.debug.apply(c,[e,h]):c.log.apply(c,[e,h])}else e="\n"+arguments[0]+"\n";for(f=1,g=arguments.length;f<g;++f){var i=arguments[f];if(typeof i=="object"&&typeof k!="undefined")try{i=k.stringify(i)}catch(j){}e+="\n"+i+"\n"}b?(b.value+=e+"\n-----\n",b.scrollTop=b.scrollHeight-b.clientHeight):a||alert(e);return!0},l.getInternetExplorerMajorVersion=function(){var a=l.getInternetExplorerMajorVersion.cached=typeof l.getInternetExplorerMajorVersion.cached!="undefined"?l.getInternetExplorerMajorVersion.cached:function(){var a=3,b=d.createElement("div"),c=b.getElementsByTagName("i");while((b.innerHTML="<!--[if gt IE "+ ++a+"]><i></i><![endif]-->")&&c[0]);return a>4?a:!1}();return a},l.isInternetExplorer=function(){var a=l.isInternetExplorer.cached=typeof l.isInternetExplorer.cached!="undefined"?l.isInternetExplorer.cached:Boolean(l.getInternetExplorerMajorVersion());return a},l.emulated={pushState:!Boolean(a.history&&a.history.pushState&&a.history.replaceState&&!/ Mobile\/([1-7][a-z]|(8([abcde]|f(1[0-8]))))/i.test(e.userAgent)&&!/AppleWebKit\/5([0-2]|3[0-2])/i.test(e.userAgent)),hashChange:Boolean(!("onhashchange"in a||"onhashchange"in d)||l.isInternetExplorer()&&l.getInternetExplorerMajorVersion()<8)},l.enabled=!l.emulated.pushState,l.bugs={setHash:Boolean(!l.emulated.pushState&&e.vendor==="Apple Computer, Inc."&&/AppleWebKit\/5([0-2]|3[0-3])/.test(e.userAgent)),safariPoll:Boolean(!l.emulated.pushState&&e.vendor==="Apple Computer, Inc."&&/AppleWebKit\/5([0-2]|3[0-3])/.test(e.userAgent)),ieDoubleCheck:Boolean(l.isInternetExplorer()&&l.getInternetExplorerMajorVersion()<8),hashEscape:Boolean(l.isInternetExplorer()&&l.getInternetExplorerMajorVersion()<7)},l.isEmptyObject=function(a){for(var b in a)return!1;return!0},l.cloneObject=function(a){var b,c;a?(b=k.stringify(a),c=k.parse(b)):c={};return c},l.getRootUrl=function(){var a=d.location.protocol+"//"+(d.location.hostname||d.location.host);if(d.location.port||!1)a+=":"+d.location.port;a+="/";return a},l.getBaseHref=function(){var a=d.getElementsByTagName("base"),b=null,c="";a.length===1&&(b=a[0],c=b.href.replace(/[^\/]+$/,"")),c=c.replace(/\/+$/,""),c&&(c+="/");return c},l.getBaseUrl=function(){var a=l.getBaseHref()||l.getBasePageUrl()||l.getRootUrl();return a},l.getPageUrl=function(){var a=l.getState(!1,!1),b=(a||{}).url||d.location.href,c=b.replace(/\/+$/,"").replace(/[^\/]+$/,function(a,b,c){return/\./.test(a)?a:a+"/"});return c},l.getBasePageUrl=function(){var a=d.location.href.replace(/[#\?].*/,"").replace(/[^\/]+$/,function(a,b,c){return/[^\/]$/.test(a)?"":a}).replace(/\/+$/,"")+"/";return a},l.getFullUrl=function(a,b){var c=a,d=a.substring(0,1);b=typeof b=="undefined"?!0:b,/[a-z]+\:\/\//.test(a)||(d==="/"?c=l.getRootUrl()+a.replace(/^\/+/,""):d==="#"?c=l.getPageUrl().replace(/#.*/,"")+a:d==="?"?c=l.getPageUrl().replace(/[\?#].*/,"")+a:b?c=l.getBaseUrl()+a.replace(/^(\.\/)+/,""):c=l.getBasePageUrl()+a.replace(/^(\.\/)+/,""));return c.replace(/\#$/,"")},l.getShortUrl=function(a){var b=a,c=l.getBaseUrl(),d=l.getRootUrl();l.emulated.pushState&&(b=b.replace(c,"")),b=b.replace(d,"/"),l.isTraditionalAnchor(b)&&(b="./"+b),b=b.replace(/^(\.\/)+/g,"./").replace(/\#$/,"");return b},l.store=f?f.store("History.store")||{}:{},l.store.idToState=l.store.idToState||{},l.store.urlToId=l.store.urlToId||{},l.store.stateToId=l.store.stateToId||{},l.idToState=l.idToState||{},l.stateToId=l.stateToId||{},l.urlToId=l.urlToId||{},l.storedStates=l.storedStates||[],l.savedStates=l.savedStates||[],l.getState=function(a,b){typeof a=="undefined"&&(a=!0),typeof b=="undefined"&&(b=!0);var c=l.getLastSavedState();!c&&b&&(c=l.createStateObject()),a&&(c=l.cloneObject(c),c.url=c.cleanUrl||c.url);return c},l.getIdByState=function(a){var b=l.extractId(a.url);if(!b){var c=l.getStateString(a);if(typeof l.stateToId[c]!="undefined")b=l.stateToId[c];else if(typeof l.store.stateToId[c]!="undefined")b=l.store.stateToId[c];else{for(;;){b=String(Math.floor(Math.random()*1e3));if(typeof l.idToState[b]=="undefined"&&typeof l.store.idToState[b]=="undefined")break}l.stateToId[c]=b,l.idToState[b]=a}}return b},l.normalizeState=function(a){if(!a||typeof a!="object")a={};if(typeof a.normalized!="undefined")return a;if(!a.data||typeof a.data!="object")a.data={};var b={};b.normalized=!0,b.title=a.title||"",b.url=l.getFullUrl(l.unescapeString(a.url||d.location.href)),b.hash=l.getShortUrl(b.url),b.data=l.cloneObject(a.data),b.id=l.getIdByState(b),b.cleanUrl=b.url.replace(/\??\&_suid.*/,""),b.url=b.cleanUrl;var c=!l.isEmptyObject(b.data);if(b.title||c)b.hash=l.getShortUrl(b.url).replace(/\??\&_suid.*/,""),/\?/.test(b.hash)||(b.hash+="?"),b.hash+="&_suid="+b.id;b.hashedUrl=l.getFullUrl(b.hash),(l.emulated.pushState||l.bugs.safariPoll)&&l.hasUrlDuplicate(b)&&(b.url=b.hashedUrl);return b},l.createStateObject=function(a,b,c){var d={data:a,title:b,url:c};d=l.normalizeState(d);return d},l.getStateById=function(a){a=String(a);var c=l.idToState[a]||l.store.idToState[a]||b;return c},l.getStateString=function(a){var b=l.normalizeState(a),c={data:b.data,title:a.title,url:a.url},d=k.stringify(c);return d},l.getStateId=function(a){var b=l.normalizeState(a),c=b.id;return c},l.getHashByState=function(a){var b,c=l.normalizeState(a);b=c.hash;return b},l.extractId=function(a){var b,c,d;c=/(.*)\&_suid=([0-9]+)$/.exec(a),d=c?c[1]||a:a,b=c?String(c[2]||""):"";return b||!1},l.isTraditionalAnchor=function(a){var b=!/[\/\?\.]/.test(a);return b},l.extractState=function(a,b){var c=null;b=b||!1;var d=l.extractId(a);d&&(c=l.getStateById(d));if(!c){var e=l.getFullUrl(a);d=l.getIdByUrl(e)||!1,d&&(c=l.getStateById(d)),!c&&b&&!l.isTraditionalAnchor(a)&&(c=l.createStateObject(null,null,e))}return c},l.getIdByUrl=function(a){var c=l.urlToId[a]||l.store.urlToId[a]||b;return c},l.getLastSavedState=function(){return l.savedStates[l.savedStates.length-1]||b},l.getLastStoredState=function(){return l.storedStates[l.storedStates.length-1]||b},l.hasUrlDuplicate=function(a){var b=!1,c=l.extractState(a.url);b=c&&c.id!==a.id;return b},l.storeState=function(a){l.urlToId[a.url]=a.id,l.storedStates.push(l.cloneObject(a));return a},l.isLastSavedState=function(a){var b=!1;if(l.savedStates.length){var c=a.id,d=l.getLastSavedState(),e=d.id;b=c===e}return b},l.saveState=function(a){if(l.isLastSavedState(a))return!1;l.savedStates.push(l.cloneObject(a));return!0},l.getStateByIndex=function(a){var b=null;typeof a=="undefined"?b=l.savedStates[l.savedStates.length-1]:a<0?b=l.savedStates[l.savedStates.length+a]:b=l.savedStates[a];return b},l.getHash=function(){var a=l.unescapeHash(d.location.hash);return a},l.unescapeString=function(b){var c=b,d;for(;;){d=a.unescape(c);if(d===c)break;c=d}return c},l.unescapeHash=function(a){var b=l.normalizeHash(a);b=l.unescapeString(b);return b},l.normalizeHash=function(a){var b=a.replace(/[^#]*#/,"").replace(/#.*/,"");return b},l.setHash=function(a,b){if(b!==!1&&l.busy()){l.pushQueue({scope:l,callback:l.setHash,args:arguments,queue:b});return!1}var c=l.escapeHash(a);l.busy(!0);var e=l.extractState(a,!0);if(e&&!l.emulated.pushState)l.pushState(e.data,e.title,e.url,!1);else if(d.location.hash!==c)if(l.bugs.setHash){var f=l.getPageUrl();l.pushState(null,null,f+"#"+c,!1)}else d.location.hash=c;return l},l.escapeHash=function(b){var c=l.normalizeHash(b);c=a.escape(c),l.bugs.hashEscape||(c=c.replace(/\%21/g,"!").replace(/\%26/g,"&").replace(/\%3D/g,"=").replace(/\%3F/g,"?"));return c},l.getHashByUrl=function(a){var b=String(a).replace(/([^#]*)#?([^#]*)#?(.*)/,"$2");b=l.unescapeHash(b);return b},l.setTitle=function(a){var b=a.title;if(!b){var c=l.getStateByIndex(0);c&&c.url===a.url&&(b=c.title||l.options.initialTitle)}try{d.getElementsByTagName("title")[0].innerHTML=b.replace("<","&lt;").replace(">","&gt;").replace(" & "," &amp; ")}catch(e){}d.title=b;return l},l.queues=[],l.busy=function(a){typeof a!="undefined"?l.busy.flag=a:typeof l.busy.flag=="undefined"&&(l.busy.flag=!1);if(!l.busy.flag){h(l.busy.timeout);var b=function(){if(!l.busy.flag)for(var a=l.queues.length-1;a>=0;--a){var c=l.queues[a];if(c.length===0)continue;var d=c.shift();l.fireQueueItem(d),l.busy.timeout=g(b,l.options.busyDelay)}};l.busy.timeout=g(b,l.options.busyDelay)}return l.busy.flag},l.fireQueueItem=function(a){return a.callback.apply(a.scope||l,a.args||[])},l.pushQueue=function(a){l.queues[a.queue||0]=l.queues[a.queue||0]||[],l.queues[a.queue||0].push(a);return l},l.queue=function(a,b){typeof a=="function"&&(a={callback:a}),typeof b!="undefined"&&(a.queue=b),l.busy()?l.pushQueue(a):l.fireQueueItem(a);return l},l.clearQueue=function(){l.busy.flag=!1,l.queues=[];return l},l.stateChanged=!1,l.doubleChecker=!1,l.doubleCheckComplete=function(){l.stateChanged=!0,l.doubleCheckClear();return l},l.doubleCheckClear=function(){l.doubleChecker&&(h(l.doubleChecker),l.doubleChecker=!1);return l},l.doubleCheck=function(a){l.stateChanged=!1,l.doubleCheckClear(),l.bugs.ieDoubleCheck&&(l.doubleChecker=g(function(){l.doubleCheckClear(),l.stateChanged||a();return!0},l.options.doubleCheckInterval));return l},l.safariStatePoll=function(){var b=l.extractState(d.location.href),c;if(!l.isLastSavedState(b))c=b;else return;c||(c=l.createStateObject()),l.Adapter.trigger(a,"popstate");return l},l.back=function(a){if(a!==!1&&l.busy()){l.pushQueue({scope:l,callback:l.back,args:arguments,queue:a});return!1}l.busy(!0),l.doubleCheck(function(){l.back(!1)}),m.go(-1);return!0},l.forward=function(a){if(a!==!1&&l.busy()){l.pushQueue({scope:l,callback:l.forward,args:arguments,queue:a});return!1}l.busy(!0),l.doubleCheck(function(){l.forward(!1)}),m.go(1);return!0},l.go=function(a,b){var c;if(a>0)for(c=1;c<=a;++c)l.forward(b);else{if(!(a<0))throw new Error("History.go: History.go requires a positive or negative integer passed.");for(c=-1;c>=a;--c)l.back(b)}return l},l.saveState(l.storeState(l.extractState(d.location.href,!0))),f&&(l.onUnload=function(){var a=f.store("History.store")||{},b;a.idToState=a.idToState||{},a.urlToId=a.urlToId||{},a.stateToId=a.stateToId||{};for(b in l.idToState){if(!l.idToState.hasOwnProperty(b))continue;a.idToState[b]=l.idToState[b]}for(b in l.urlToId){if(!l.urlToId.hasOwnProperty(b))continue;a.urlToId[b]=l.urlToId[b]}for(b in l.stateToId){if(!l.stateToId.hasOwnProperty(b))continue;a.stateToId[b]=l.stateToId[b]}l.store=a,f.store("History.store",a)},l.intervalList.push(i(l.onUnload,l.options.storeInterval)),l.Adapter.bind(a,"beforeunload",l.onUnload),l.Adapter.bind(a,"unload",l.onUnload));if(l.emulated.pushState){var n=function(){};l.pushState=l.pushState||n,l.replaceState=l.replaceState||n}else{l.onPopState=function(b){l.doubleCheckComplete();var c=l.getHash();if(c){var e=l.extractState(c||d.location.href,!0);e?l.replaceState(e.data,e.title,e.url,!1):(l.Adapter.trigger(a,"anchorchange"),l.busy(!1)),l.expectedStateId=!1;return!1}var f=!1;b=b||{},typeof b.state=="undefined"&&(typeof b.originalEvent!="undefined"&&typeof b.originalEvent.state!="undefined"?b.state=b.originalEvent.state||!1:typeof b.event!="undefined"&&typeof b.event.state!="undefined"&&(b.state=b.event.state||!1)),b.state=b.state||!1,b.state?f=l.getStateById(b.state):l.expectedStateId?f=l.getStateById(l.expectedStateId):f=l.extractState(d.location.href),f||(f=l.createStateObject(null,null,d.location.href)),l.expectedStateId=!1;if(l.isLastSavedState(f)){l.busy(!1);return!1}l.storeState(f),l.saveState(f),l.setTitle(f),l.Adapter.trigger(a,"statechange"),l.busy(!1);return!0},l.Adapter.bind(a,"popstate",l.onPopState),l.pushState=function(b,c,d,e){if(l.getHashByUrl(d)&&l.emulated.pushState)throw new Error("History.js does not support states with fragement-identifiers (hashes/anchors).");if(e!==!1&&l.busy()){l.pushQueue({scope:l,callback:l.pushState,args:arguments,queue:e});return!1}l.busy(!0);var f=l.createStateObject(b,c,d);l.isLastSavedState(f)?l.busy(!1):(l.storeState(f),l.expectedStateId=f.id,m.pushState(f.id,f.title,f.url),l.Adapter.trigger(a,"popstate"));return!0},l.replaceState=function(b,c,d,e){if(l.getHashByUrl(d)&&l.emulated.pushState)throw new Error("History.js does not support states with fragement-identifiers (hashes/anchors).");if(e!==!1&&l.busy()){l.pushQueue({scope:l,callback:l.replaceState,args:arguments,queue:e});return!1}l.busy(!0);var f=l.createStateObject(b,c,d);l.isLastSavedState(f)?l.busy(!1):(l.storeState(f),l.expectedStateId=f.id,m.replaceState(f.id,f.title,f.url),l.Adapter.trigger(a,"popstate"));return!0},l.bugs.safariPoll&&l.intervalList.push(i(l.safariStatePoll,l.options.safariPollInterval));if(e.vendor==="Apple Computer, Inc."||(e.appCodeName||"")==="Mozilla")l.Adapter.bind(a,"hashchange",function(){l.Adapter.trigger(a,"popstate")}),l.getHash()&&l.Adapter.onDomLoad(function(){l.Adapter.trigger(a,"hashchange")})}},l.init()})(window)
@@ -1,14 +1,47 @@
1
+ var History = window.History;
2
+ var ajaxed = true;
3
+
1
4
  $.ajaxSetup({
2
- dataType: "html"
5
+ dataType: "html"
3
6
  });
7
+
8
+ function ajax_complete_defaults(data){
9
+ $("#main").removeClass('ajax-loader');
10
+ $("#main").html(data);
11
+ bind_functions("#main");
12
+ $('title').html($("#content_for_title").html());
13
+ $("#content_for_title").remove();
14
+ $("meta[name='description']").attr("content",$("#content_for_page_description").html());
15
+ $("#content_for_page_description").remove();
16
+ $("meta[name='keywords']").attr("content",$("#content_for_keywords").html());
17
+ $("#content_for_keywords").remove();
18
+ $('#sidebar').html($("#content_for_sidebar").html());
19
+ $("#content_for_sidebar").remove();
20
+ }
21
+
4
22
  $(document).ready(function (){
5
23
  $("a[data-remote]").live('ajax:before', function() {
6
- $($(this).attr('rel')).addClass('ajax-loader');
24
+ $("#main").addClass('ajax-loader');
7
25
  });
8
26
 
9
27
  $("a[data-remote]").live('ajax:complete', function(status, xhr) {
10
- $($(this).attr('rel')).removeClass('ajax-loader');
11
- $($(this).attr('rel')).html(xhr.responseText);
12
- bind_functions($(this).attr('rel'));
28
+ ajax_complete_defaults(xhr.responseText);
29
+ $($(this).closest('div')).find('.current').removeClass('current');
30
+ $(this).addClass('current');
31
+ ajaxed = true;
32
+ History.pushState(null,'',$(this).attr('href'));
13
33
  });
34
+
35
+ $(window).bind('statechange',function(){
36
+ if (ajaxed === false ) {
37
+ var url = History.getState().url.replace(History.getRootUrl(),'');
38
+ $.ajax({
39
+ url: url,
40
+ success: [function(data) {History.pushState(null,'',url)},function(data) {ajax_complete_defaults(data);}]
41
+ });
42
+ } else {
43
+ ajaxed = false;
44
+ }
45
+ });
46
+
14
47
  });