lipsiadmin 5.1.7 → 5.1.8

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -58,12 +58,12 @@ end
58
58
 
59
59
  desc "Install the gem locally"
60
60
  task :install => [:uninstall, :repackage] do
61
- sh %{sudo gem install pkg/#{PKG_FILE_NAME}.gem --no-ri --no-rdoc}
61
+ sh %{gem install pkg/#{PKG_FILE_NAME}.gem --no-ri --no-rdoc}
62
62
  end
63
63
 
64
64
  desc "Unistall the gem from local"
65
65
  task :uninstall => [:clean] do
66
- sh %{sudo gem uninstall #{PKG_NAME}} rescue nil
66
+ sh %{gem uninstall #{PKG_NAME}} rescue nil
67
67
  end
68
68
 
69
69
  desc "Generate a gemspec file for GitHub"
@@ -2,7 +2,7 @@ module Lipsiadmin
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 5
4
4
  MINOR = 1
5
- TINY = 7
5
+ TINY = 8
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
@@ -45,10 +45,13 @@
45
45
  var columnId = <%= @var %>.getColumnModel().getColumnId(e.column);
46
46
  var column = <%= @var %>.getColumnModel().getColumnById(columnId);
47
47
 
48
+ params = {};
49
+ params[column.name] = e.value;
50
+
48
51
  Ext.Ajax.request({
49
52
  url: '<%= @base_path %>/'+e.record.id+".json",
50
53
  method: 'PUT',
51
- params: column.name+'='+e.value,
54
+ params: params,
52
55
  success: function(result, request){
53
56
  var resultValue = Ext.decode(result.responseText);
54
57
  if (resultValue.success == true){
@@ -57,7 +60,7 @@
57
60
  Ext.Msg.alert(Backend.locale.messages.alert.title, resultValue.msg);
58
61
  e.record.reject();
59
62
  }
60
- },
63
+ },
61
64
  failure: function(result, request) {
62
65
  Ext.Msg.alert(Backend.locale.messages.alert.title, Lipsiadmin.locale.alert.msg);
63
66
  e.record.reject();
@@ -88,14 +91,14 @@ function remove(){
88
91
  params: {<%= @forgery_protection_token %>: '<%= @authenticity_token %>'},
89
92
  success: function(result, request){
90
93
  Backend.app.unmask();
91
- var resultValue = Ext.decode(result.responseText);
94
+ var resultValue = Ext.decode(result.responseText);
92
95
  if (resultValue.success == true){
93
96
  <%= @store %>.remove(r);
94
- } else {
97
+ } else {
95
98
  Ext.MessageBox.alert(Backend.locale.messages.alert.title, resultValue.msg);
96
99
  return;
97
100
  }
98
- },
101
+ },
99
102
  failure: function(result, request) {
100
103
  Backend.app.unmask();
101
104
  Ext.Msg.alert(Backend.locale.messages.alert.title, Backend.locale.messages.alert.message);
@@ -105,4 +108,4 @@ function remove(){
105
108
  }
106
109
  });
107
110
  }
108
- <% end %>
111
+ <% end %>
@@ -19,9 +19,7 @@ module Lipsiadmin
19
19
  end
20
20
 
21
21
  def to_s_with_refactoring #:nodoc:
22
- returning javascript = @lines * $/ do
23
- source = javascript.dup
24
- end
22
+ source = @lines.join("\n")
25
23
  end
26
24
 
27
25
  # Hide all open dialogs
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lipsiadmin
3
3
  version: !ruby/object:Gem::Version
4
- hash: 61
4
+ hash: 35
5
5
  prerelease:
6
6
  segments:
7
7
  - 5
8
8
  - 1
9
- - 7
10
- version: 5.1.7
9
+ - 8
10
+ version: 5.1.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Davide D'Agostino
@@ -15,8 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-10-05 00:00:00 +02:00
19
- default_executable:
18
+ date: 2012-03-24 00:00:00 Z
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
21
  name: haml
@@ -467,7 +466,6 @@ files:
467
466
  - resources/pd4ml/ss_css2.jar
468
467
  - resources/rdoc/horo.rb
469
468
  - tasks/lipsiadmin_tasks.rake
470
- has_rdoc: true
471
469
  homepage: http://www.lipsiadmin.com
472
470
  licenses: []
473
471
 
@@ -497,7 +495,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
497
495
  requirements:
498
496
  - ImageMagick
499
497
  rubyforge_project: lipsiadmin
500
- rubygems_version: 1.6.2
498
+ rubygems_version: 1.8.20
501
499
  signing_key:
502
500
  specification_version: 3
503
501
  summary: Lipsiadmin is a new revolutionary admin for your projects.Lipsiadmin is based on Ext Js 2.0. framework (with prototype adapter) and is ready for Rails 2.0. This admin is for newbie developper but also for experts, is not entirely written in javascript because the aim of developper wose build in a agile way web/site apps so we use extjs in a new intelligent way a mixin of 'old' html and new ajax functions, for example ext manage the layout of page, grids, tree and errors, but form are in html code.