umlaut 3.0.4 → 3.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,29 @@
1
+ /* ajax_windows.js. Support for modal popup windows in Umlaut items. */
2
+ jQuery(document).ready(function($) {
3
+ var ajax_form_catch, shared_modal_d;
4
+ shared_modal_d = $("<div></div>").dialog({
5
+ autoOpen: false,
6
+ modal: true,
7
+ width: "400px"
8
+ });
9
+ $(document).on("click", "a.ajax_window", function(event) {
10
+ $(shared_modal_d).load(this.href, function() {
11
+ var heading;
12
+ heading = shared_modal_d.find("h1, h2, h3, h4, h5, h6").eq(0).remove();
13
+ $(shared_modal_d).dialog("option", "title", heading.text());
14
+ return $(shared_modal_d).dialog("open");
15
+ });
16
+ return false;
17
+ });
18
+ ajax_form_catch = function(event) {
19
+ $(shared_modal_d).load($(event.target).closest("form").attr("action"), $(event.target).closest("form").serialize(), function() {
20
+ var heading;
21
+ heading = shared_modal_d.find("h1, h2, h3, h4, h5, h6").eq(0).remove();
22
+ $(shared_modal_d).dialog("option", "title", heading.text());
23
+ return $(shared_modal_d).dialog("open");
24
+ });
25
+ return false;
26
+ };
27
+ $(document).on("click", "form.modal_dialog_form input[type=submit]", ajax_form_catch);
28
+ return $(document).on("submit", "form.modal_dialog_form", ajax_form_catch);
29
+ });
@@ -9,7 +9,7 @@
9
9
  */
10
10
  jQuery(document).ready(function($) {
11
11
 
12
- $(".expand_contract_toggle").live("click", function() {
12
+ $(document).on("click", ".expand_contract_toggle", function() {
13
13
  var content = $(this).next(".expand_contract_content");
14
14
  var icon = $(this).parent().find('img.toggle_icon');
15
15
 
@@ -1,7 +1,7 @@
1
1
  /* search_autocomplete.js. Add autocomplete to Umlaut journal title search. */
2
2
  jQuery(document).ready(function($) {
3
3
 
4
- $("form.OpenURL").live("submit", function() {
4
+ $(document).on("submit", "form.OpenURL", function() {
5
5
  var form = $(this);
6
6
  if ( form.find(".rft_title").val() != $(this).val()) {
7
7
  form.find(".rft_object_id").val("");
@@ -1,7 +1,7 @@
1
1
  /* simple_visible_toggle.js. Used for toggling visibility of error information. Can possibly be combined with more powerful expand_contract_toggle.js */
2
2
  jQuery(document).ready(function($) {
3
3
 
4
- $("a.simple_visible_toggle").live("click", function() {
4
+ $(document).on("click", "a.simple_visible_toggle", function() {
5
5
  $(this).next().toggle();
6
6
  });
7
7
 
@@ -0,0 +1,21 @@
1
+ .background_progress_spinner {
2
+ line-height: 1.5em;
3
+ color: gray;
4
+ }
5
+
6
+ .background_progress_spinner img {
7
+ vertical-align: bottom;
8
+ }
9
+
10
+ .main_response_list .background_progress_spinner {
11
+ padding-left: 18px;
12
+ }
13
+
14
+ .sidebar .background_progress_spinner {
15
+ padding-left: 10px;
16
+ }
17
+
18
+ .umlaut-resource-info .background_progress_spinner {
19
+ padding-left: 24px;
20
+ padding-top: 8px;
21
+ }
@@ -0,0 +1,28 @@
1
+
2
+ table .expand_contract_toggle {
3
+ /* IE-only, IE doesn't like our negative margin
4
+ inside a table. Use that crazy '*' so only IE will see it. */
5
+ *margin-left: 0;
6
+ }
7
+
8
+ .expand_contract_toggle {
9
+ margin-top: 4px;
10
+ margin-bottom: 4px;
11
+ margin-left: -18px;
12
+ }
13
+
14
+ .expand_contract_content {
15
+ margin-top: 0.5em;
16
+ }
17
+
18
+ div.expand_contract_section {
19
+ margin-top: 0.25em;
20
+ }
21
+
22
+ li.expand_contract_section {
23
+ margin: 0;
24
+ padding: 0;
25
+ background: none;
26
+ }
27
+
28
+
@@ -1,3 +1,3 @@
1
1
  module Umlaut
2
- VERSION = "3.0.4"
2
+ VERSION = "3.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: umlaut
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.4
4
+ version: 3.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-08 00:00:00.000000000 Z
12
+ date: 2013-02-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -304,13 +304,15 @@ files:
304
304
  - app/assets/images/error.gif
305
305
  - app/assets/javascripts/umlaut_ui.js
306
306
  - app/assets/javascripts/umlaut.js
307
- - app/assets/javascripts/umlaut/ajax_windows.js.coffee
308
307
  - app/assets/javascripts/umlaut/update_html.js
308
+ - app/assets/javascripts/umlaut/ajax_windows.js
309
309
  - app/assets/javascripts/umlaut/simple_visible_toggle.js
310
310
  - app/assets/javascripts/umlaut/ensure_window_size.js.erb
311
311
  - app/assets/javascripts/umlaut/expand_contract_toggle.js
312
312
  - app/assets/javascripts/umlaut/search_autocomplete.js
313
313
  - app/assets/stylesheets/umlaut.css
314
+ - app/assets/stylesheets/umlaut/_background_progress_spinner.scss
315
+ - app/assets/stylesheets/umlaut/_expand_contract.scss
314
316
  - app/models/sfx_url.rb
315
317
  - app/models/crossref_lookup.rb
316
318
  - app/models/service_wave.rb
@@ -574,7 +576,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
574
576
  version: '0'
575
577
  segments:
576
578
  - 0
577
- hash: 1628836782081809943
579
+ hash: -644679165578292305
578
580
  required_rubygems_version: !ruby/object:Gem::Requirement
579
581
  none: false
580
582
  requirements:
@@ -583,7 +585,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
583
585
  version: '0'
584
586
  segments:
585
587
  - 0
586
- hash: 1628836782081809943
588
+ hash: -644679165578292305
587
589
  requirements: []
588
590
  rubyforge_project:
589
591
  rubygems_version: 1.8.24
@@ -1,23 +0,0 @@
1
- # ajax_windows.js. Support for modal popup windows in Umlaut items.
2
- $ ->
3
- shared_modal_d = $("<div></div>").dialog({autoOpen: false, modal: true, width: "400px"})
4
- $("a.ajax_window").live "click", (event)->
5
- $(shared_modal_d).load this.href, ->
6
- heading = shared_modal_d.find("h1, h2, h3, h4, h5, h6").eq(0).remove()
7
- $(shared_modal_d).dialog "option", "title", heading.text()
8
- $(shared_modal_d).dialog "open"
9
- false
10
-
11
- ajax_form_catch = (event) ->
12
- $(shared_modal_d).load $(event.target).closest("form").attr("action"), $(event.target).closest("form").serialize(), ->
13
- heading = shared_modal_d.find("h1, h2, h3, h4, h5, h6").eq(0).remove()
14
- $(shared_modal_d).dialog "option", "title", heading.text()
15
- $(shared_modal_d).dialog "open"
16
- return false;
17
-
18
- # # Trapping two events, click on the submit button or submit on the form
19
- # # is strangely needed in IE7 to trap both return-in-field submits
20
- # # and click-on-button submits. In FF just the second "submit" version
21
- # # is sufficient.
22
- $("form.modal_dialog_form input[type=submit]").live "click", ajax_form_catch
23
- $("form.modal_dialog_form").live "submit", ajax_form_catch