tkh_admin_panel 0.9.2 → 0.9.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e08850c6bfebb44b0c17ac76797b2623eb3ad352
4
- data.tar.gz: 523886acedede2728058e1ed8dfc646f51ffe99b
3
+ metadata.gz: 42ede2e3b258621e93861465db25dcf5be41054d
4
+ data.tar.gz: e09c8bd9c981cced5611e5c7c1ddb23f777def61
5
5
  SHA512:
6
- metadata.gz: f44dc8bddae693e054fb988d7074f213450c7b006e4206c55898fd31ee0b0f51ba8596391b51812455c185173a4fedbe82e28e402475f9914f90077463166057
7
- data.tar.gz: 4aa98bd510ddbeb682429257911a60bea3eb30672e32d71bcc1e84dcdc62c3c1abfe6699fd291b81651502c8c7dcfd07e62e8ae96a7b40e21865b40abb6a0272
6
+ metadata.gz: 4026cab9827fb3924bf6083cf08412ac84642f52b501bc3a5b094912ffe2d8b3c7753d19c78930316d4bdf4c55ba62f258104587223cf3b64d41b36d622e1ab4
7
+ data.tar.gz: ea7491844ffcd257234e4befc023da934b797324b554dde487e1480bc4bef83cf9156469c745377e10f00a68ec09b47c46fe43e077bf087bca1e115d101ab142
data/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
 
4
4
 
5
+ ## 0.9.3
6
+
7
+ * Debugged autocomplete typeahead code. Reorganized page js files.
8
+
9
+
5
10
  ## 0.9.2
6
11
 
7
12
  * Admin sections can now use the jquery sortable library
@@ -2,4 +2,3 @@ jQuery ->
2
2
  $("a[rel=popover]").popover()
3
3
  $(".tooltip").tooltip()
4
4
  $("a[rel=tooltip]").tooltip()
5
- $('.typeahead').typeahead()
@@ -1,7 +1,23 @@
1
1
  jQuery ->
2
+ # Some fields should be shown only for blog posts, others only for static content pages
3
+ if $('input#page_for_blog:checked').length>0
4
+ $('#page-short-title').hide()
5
+ $('#parent-page-title').hide()
6
+ else
7
+ $('#page-tag-list').hide()
8
+
9
+ # Toggle fields to be shown when user changes page to/from static content to/from blog post
10
+ $("input#page_for_blog").change ->
11
+ if $('input#page_for_blog:checked').length>0
12
+ $('#page-short-title').hide(450)
13
+ $('#parent-page-title').hide(450)
14
+ $('#page-tag-list').show(450)
15
+ else
16
+ $('#page-tag-list').hide(450)
17
+ $('#page-short-title').show(450)
18
+ $('#parent-page-title').show(450)
19
+
2
20
  # Typeahead form field for autocomplete associations
3
21
  $('#page_author_name').typeahead(
4
22
  name: 'page_author_name',
5
23
  local: $('#page_author_name').data('source') )
6
-
7
-
@@ -12,4 +12,3 @@
12
12
  //= require twitter/typeahead.min
13
13
  //= require ckeditor-jquery
14
14
  //= require admin/custom
15
- //= require pages
@@ -1,3 +1,3 @@
1
1
  module TkhAdminPanel
2
- VERSION = "0.9.2"
2
+ VERSION = "0.9.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tkh_admin_panel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
4
+ version: 0.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Swami Atma
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-02 00:00:00.000000000 Z
11
+ date: 2014-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties