refinerycms 0.9.6.10 → 0.9.6.11

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.6.10
1
+ 0.9.6.11
@@ -491,12 +491,17 @@ var image_dialog = {
491
491
  relevant_src = imageUrl.protocol + '//' + imageUrl.host + relevant_src;
492
492
  }
493
493
 
494
- try {
495
- parent.document.getElementById('wym_src').value = relevant_src;
496
- parent.document.getElementById('wym_title').value = img.title;
497
- parent.document.getElementById('wym_alt').value = img.alt;
494
+ if (parent) {
495
+ if ((wym_src = parent.document.getElementById('wym_src')) != null) {
496
+ wym_src.value = relevant_src;
497
+ }
498
+ if ((wym_title = parent.document.getElementById('wym_title')) != null) {
499
+ wym_title.value = img.title;
500
+ }
501
+ if ((wym_alt = parent.document.getElementById('wym_alt')) != null) {
502
+ wym_alt.value = img.alt;
503
+ }
498
504
  }
499
- catch(e){}
500
505
  }
501
506
  }
502
507
 
@@ -54,11 +54,13 @@ module Refinery::ApplicationHelper
54
54
 
55
55
  def jquery_include_tags(use_caching=RefinerySetting.find_or_set(:use_resource_caching, false))
56
56
  if !local_request? and RefinerySetting.find_or_set(:use_google_ajax_libraries, true)
57
- "#{javascript_include_tag "http://www.google.com/jsapi"}
57
+ "#{javascript_include_tag("http://www.google.com/jsapi").gsub(".js", "")}
58
58
  <script type='text/javascript'>
59
59
  google.load('jquery', '1.4');
60
- google.load('jqueryui', '1.8');
61
- </script>"
60
+ //google.load('jqueryui', '1.8');
61
+ // google isn't using jqueryui 1.8 yet although it was before.
62
+ </script>
63
+ #{javascript_include_tag 'jquery-ui-1.8rc1.min.js'}"
62
64
  else
63
65
  javascript_include_tag 'jquery', 'jquery-ui-1.8rc1.min.js', :cache => (use_caching ? "cache/libraries" : nil)
64
66
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: refinerycms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.6.10
4
+ version: 0.9.6.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Resolve Digital
@@ -11,7 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2010-02-16 00:00:00 +13:00
14
+ date: 2010-02-17 00:00:00 +13:00
15
15
  default_executable:
16
16
  dependencies: []
17
17