compass-jquery-plugin 0.2.4.1 → 0.2.4.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.
- data/README.textile +6 -6
- data/VERSION.yml +1 -1
- data/compass-jquery-plugin.gemspec +7 -2
- data/gem_tasks/jqgrid.rake +13 -4
- data/lib/jquery/jqgrid.rb +11 -10
- data/lib/jquery/jrails.rb +10 -18
- data/templates/jqgrid/i18n/jqgrid/locale-bg.js +132 -128
- data/templates/jqgrid/i18n/jqgrid/locale-bg.min.js +1 -1
- data/templates/jqgrid/i18n/jqgrid/locale-bg1251.js +132 -128
- data/templates/jqgrid/i18n/jqgrid/locale-bg1251.min.js +1 -1
- data/templates/jqgrid/i18n/jqgrid/locale-cat.js +128 -124
- data/templates/jqgrid/i18n/jqgrid/locale-cat.min.js +1 -1
- data/templates/jqgrid/i18n/jqgrid/locale-cs.js +127 -123
- data/templates/jqgrid/i18n/jqgrid/locale-cs.min.js +1 -1
- data/templates/jqgrid/i18n/jqgrid/locale-de.js +127 -123
- data/templates/jqgrid/i18n/jqgrid/locale-de.min.js +1 -1
- data/templates/jqgrid/i18n/jqgrid/locale-dk.js +128 -124
- data/templates/jqgrid/i18n/jqgrid/locale-dk.min.js +1 -1
- data/templates/jqgrid/i18n/jqgrid/locale-el.js +126 -122
- data/templates/jqgrid/i18n/jqgrid/locale-el.min.js +1 -1
- data/templates/jqgrid/i18n/jqgrid/locale-en.js +128 -123
- data/templates/jqgrid/i18n/jqgrid/locale-en.min.js +1 -1
- data/templates/jqgrid/i18n/jqgrid/locale-fa.js +125 -121
- data/templates/jqgrid/i18n/jqgrid/locale-fa.min.js +1 -1
- data/templates/jqgrid/i18n/jqgrid/locale-fi.js +128 -124
- data/templates/jqgrid/i18n/jqgrid/locale-fi.min.js +1 -1
- data/templates/jqgrid/i18n/jqgrid/locale-fr.js +126 -122
- data/templates/jqgrid/i18n/jqgrid/locale-fr.min.js +1 -1
- data/templates/jqgrid/i18n/jqgrid/locale-he.js +127 -0
- data/templates/jqgrid/i18n/jqgrid/locale-he.min.js +1 -0
- data/templates/jqgrid/i18n/jqgrid/locale-is.js +126 -122
- data/templates/jqgrid/i18n/jqgrid/locale-is.min.js +1 -1
- data/templates/jqgrid/i18n/jqgrid/locale-it.js +126 -122
- data/templates/jqgrid/i18n/jqgrid/locale-it.min.js +1 -1
- data/templates/jqgrid/i18n/jqgrid/locale-jp.js +127 -123
- data/templates/jqgrid/i18n/jqgrid/locale-jp.min.js +1 -1
- data/templates/jqgrid/i18n/jqgrid/locale-nl.js +148 -144
- data/templates/jqgrid/i18n/jqgrid/locale-nl.min.js +1 -1
- data/templates/jqgrid/i18n/jqgrid/locale-no.js +121 -116
- data/templates/jqgrid/i18n/jqgrid/locale-no.min.js +1 -1
- data/templates/jqgrid/i18n/jqgrid/locale-pl.js +126 -122
- data/templates/jqgrid/i18n/jqgrid/locale-pl.min.js +1 -1
- data/templates/jqgrid/i18n/jqgrid/locale-pt-br.js +127 -123
- data/templates/jqgrid/i18n/jqgrid/locale-pt-br.min.js +1 -1
- data/templates/jqgrid/i18n/jqgrid/locale-pt.js +125 -121
- data/templates/jqgrid/i18n/jqgrid/locale-pt.min.js +1 -1
- data/templates/jqgrid/i18n/jqgrid/locale-ro.js +139 -0
- data/templates/jqgrid/i18n/jqgrid/locale-ro.min.js +1 -0
- data/templates/jqgrid/i18n/jqgrid/locale-ru.js +127 -123
- data/templates/jqgrid/i18n/jqgrid/locale-ru.min.js +1 -1
- data/templates/jqgrid/i18n/jqgrid/locale-sp.js +128 -124
- data/templates/jqgrid/i18n/jqgrid/locale-sp.min.js +1 -1
- data/templates/jqgrid/i18n/jqgrid/locale-sv.js +117 -112
- data/templates/jqgrid/i18n/jqgrid/locale-sv.min.js +1 -1
- data/templates/jqgrid/i18n/jqgrid/locale-tr.js +126 -122
- data/templates/jqgrid/i18n/jqgrid/locale-tr.min.js +1 -1
- data/templates/jqgrid/i18n/jqgrid/locale-ua.js +127 -123
- data/templates/jqgrid/i18n/jqgrid/locale-ua.min.js +1 -1
- data/templates/jqgrid/jquery.jqGrid.js +9913 -8988
- data/templates/jqgrid/jquery.jqGrid.min.js +1 -1
- data/templates/jqgrid/jquery.ui/jqGrid.sass +745 -580
- data/templates/jqgrid/manifest.rb +62 -57
- data/templates/jqgrid/public/stylesheets/ellipsis-xbl.xml +13 -0
- data/templates/jrails/jquery.js +7644 -7626
- data/templates/jrails/jquery.min.js +19 -19
- data/templates/jrails/jrails.js +192 -197
- data/templates/jrails/jrails.min.js +1 -1
- data/templates/secret_sauce/app/views/ui/_ui_grid_for_without_block.js.haml +139 -136
- metadata +7 -2
data/README.textile
CHANGED
|
@@ -10,7 +10,7 @@ h2. Description
|
|
|
10
10
|
A Sass-based Meta-Framework for Compass that allows you to mix and match any of the following:
|
|
11
11
|
|
|
12
12
|
* jRails with jQuery and jQuery.UI including themes
|
|
13
|
-
* jqGrid V3.
|
|
13
|
+
* jqGrid V3.6
|
|
14
14
|
* dynatree V0.5.1
|
|
15
15
|
|
|
16
16
|
This library requires <b>"Compass":http://wiki.github.com/chriseppstein/compass</b>.
|
|
@@ -38,7 +38,7 @@ h3. jQuery Dynatree Plugin
|
|
|
38
38
|
|
|
39
39
|
Use compass to install the jQuery Dynatree javascript library into your project.
|
|
40
40
|
|
|
41
|
-
<pre>compass -f jquery -p dynatree <project name></pre>
|
|
41
|
+
<pre>compass -r jquery -f jquery -p dynatree <project name></pre>
|
|
42
42
|
|
|
43
43
|
You will find all the stylesheets in easy-to-read Sass format at:
|
|
44
44
|
|
|
@@ -54,7 +54,7 @@ h3. jqGrid
|
|
|
54
54
|
|
|
55
55
|
Use compass to install the jqGrid javascript library into your project.
|
|
56
56
|
|
|
57
|
-
<pre>compass -f jquery -p jqgrid <project name></pre>
|
|
57
|
+
<pre>compass -r jquery -f jquery -p jqgrid <project name></pre>
|
|
58
58
|
|
|
59
59
|
You will find all the stylesheets in easy-to-read Sass format at:
|
|
60
60
|
|
|
@@ -72,7 +72,7 @@ h3. Secret Sauce
|
|
|
72
72
|
|
|
73
73
|
Use compass to install the Secret Sauce for jqGrid javascript library into your project.
|
|
74
74
|
|
|
75
|
-
<pre>compass -f jquery -p secret_sauce <project name></pre>
|
|
75
|
+
<pre>compass -r jquery -f jquery -p secret_sauce <project name></pre>
|
|
76
76
|
|
|
77
77
|
You will find all the stylesheets in easy-to-read Sass format.
|
|
78
78
|
|
|
@@ -88,7 +88,7 @@ h3. Calendar
|
|
|
88
88
|
|
|
89
89
|
Use compass to install the calendar javascript library into your project.
|
|
90
90
|
|
|
91
|
-
<pre>compass -f jquery -p calendar <project name></pre>
|
|
91
|
+
<pre>compass -r jquery -f jquery -p calendar <project name></pre>
|
|
92
92
|
|
|
93
93
|
You will find all the stylesheets in easy-to-read Sass format.
|
|
94
94
|
|
|
@@ -122,7 +122,7 @@ h3. jQuery Plugins included
|
|
|
122
122
|
* Kyle LeNeau for <b>"jMonthCalendar":http://www.bytecyclist.com/projects/jmonthcalendar</b>
|
|
123
123
|
|
|
124
124
|
h2. Note on Patches/Pull Requests
|
|
125
|
-
|
|
125
|
+
|
|
126
126
|
* Fork the project.
|
|
127
127
|
* Make your feature addition or bug fix.
|
|
128
128
|
* Add tests for it. This is important so I don't break it in a
|
data/VERSION.yml
CHANGED
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{compass-jquery-plugin}
|
|
8
|
-
s.version = "0.2.4.
|
|
8
|
+
s.version = "0.2.4.3"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Kosmas Schuetz"]
|
|
12
|
-
s.date = %q{2009-11-
|
|
12
|
+
s.date = %q{2009-11-19}
|
|
13
13
|
s.description = %q{A compass plugin that integrates jRails, jQuery, jQuery UI and Themes, jqGrid and more into the Compass Sass framework.}
|
|
14
14
|
s.email = %q{kosmas.schuetz@gmx.com}
|
|
15
15
|
s.extra_rdoc_files = [
|
|
@@ -204,6 +204,8 @@ Gem::Specification.new do |s|
|
|
|
204
204
|
"templates/jqgrid/i18n/jqgrid/locale-fi.min.js",
|
|
205
205
|
"templates/jqgrid/i18n/jqgrid/locale-fr.js",
|
|
206
206
|
"templates/jqgrid/i18n/jqgrid/locale-fr.min.js",
|
|
207
|
+
"templates/jqgrid/i18n/jqgrid/locale-he.js",
|
|
208
|
+
"templates/jqgrid/i18n/jqgrid/locale-he.min.js",
|
|
207
209
|
"templates/jqgrid/i18n/jqgrid/locale-is.js",
|
|
208
210
|
"templates/jqgrid/i18n/jqgrid/locale-is.min.js",
|
|
209
211
|
"templates/jqgrid/i18n/jqgrid/locale-it.js",
|
|
@@ -220,6 +222,8 @@ Gem::Specification.new do |s|
|
|
|
220
222
|
"templates/jqgrid/i18n/jqgrid/locale-pt-br.min.js",
|
|
221
223
|
"templates/jqgrid/i18n/jqgrid/locale-pt.js",
|
|
222
224
|
"templates/jqgrid/i18n/jqgrid/locale-pt.min.js",
|
|
225
|
+
"templates/jqgrid/i18n/jqgrid/locale-ro.js",
|
|
226
|
+
"templates/jqgrid/i18n/jqgrid/locale-ro.min.js",
|
|
223
227
|
"templates/jqgrid/i18n/jqgrid/locale-ru.js",
|
|
224
228
|
"templates/jqgrid/i18n/jqgrid/locale-ru.min.js",
|
|
225
229
|
"templates/jqgrid/i18n/jqgrid/locale-sp.js",
|
|
@@ -234,6 +238,7 @@ Gem::Specification.new do |s|
|
|
|
234
238
|
"templates/jqgrid/jquery.jqGrid.min.js",
|
|
235
239
|
"templates/jqgrid/jquery.ui/jqGrid.sass",
|
|
236
240
|
"templates/jqgrid/manifest.rb",
|
|
241
|
+
"templates/jqgrid/public/stylesheets/ellipsis-xbl.xml",
|
|
237
242
|
"templates/jrails/config/initializers/jrails.rb",
|
|
238
243
|
"templates/jrails/i18n/jquery.ui/datepicker-ar.js",
|
|
239
244
|
"templates/jrails/i18n/jquery.ui/datepicker-ar.min.js",
|
data/gem_tasks/jqgrid.rake
CHANGED
|
@@ -10,6 +10,7 @@ JQGRID_DEST_TEMPLATES = File.join(GEM_ROOT, 'templates', 'jqgrid')
|
|
|
10
10
|
JQGRID_DEST_LOCALES = File.join(JQGRID_DEST_TEMPLATES, 'config', 'locales', 'jquery', 'jqgrid')
|
|
11
11
|
JQGRID_DEST_STYLESHEETS = File.join(JQGRID_DEST_TEMPLATES, 'jquery.ui')
|
|
12
12
|
JQGRID_DEST_TRANSLATIONS = File.join(JQGRID_DEST_TEMPLATES, 'i18n', 'jqgrid')
|
|
13
|
+
JQGRID_DEST_XML = File.join(JQGRID_DEST_TEMPLATES, 'public', 'stylesheets')
|
|
13
14
|
|
|
14
15
|
JQGRID_MESSAGE1 = "# Generated by compass-jquery-plugin/gem-tasks/jqgrid.rake\n# Install with: compass -f jquery -p jqgrid\n\n"
|
|
15
16
|
JQGRID_MESSAGE2 = "// Generated by compass-jquery-plugin/gem-tasks/jqgrid.rake\n\n"
|
|
@@ -34,13 +35,15 @@ all_scripts = [
|
|
|
34
35
|
'js/jquery.searchFilter.js',
|
|
35
36
|
'js/JsonXml.js',
|
|
36
37
|
'plugins/jquery.contextmenu.js',
|
|
37
|
-
'plugins/jquery.tablednd.js'
|
|
38
|
+
'plugins/jquery.tablednd.js',
|
|
39
|
+
'plugins/ui.multiselect.js'
|
|
38
40
|
].collect {|filename| File.read(File.join(JQGRID_SRC, filename))}.join "\n\n"
|
|
39
41
|
|
|
40
42
|
all_stylesheets = [
|
|
41
|
-
'ui.jqgrid.css',
|
|
42
|
-
'jquery.searchFilter.css'
|
|
43
|
-
|
|
43
|
+
'css/ui.jqgrid.css',
|
|
44
|
+
'css/jquery.searchFilter.css',
|
|
45
|
+
'plugins/ui.multiselect.css'
|
|
46
|
+
].collect {|filename| File.read(File.join(JQGRID_SRC, filename))}.join "\n\n"
|
|
44
47
|
|
|
45
48
|
namespace :jqgrid do
|
|
46
49
|
desc 'Build the stylesheets and templates for jqGrid.'
|
|
@@ -104,6 +107,12 @@ namespace :jqgrid do
|
|
|
104
107
|
f.print sass
|
|
105
108
|
end
|
|
106
109
|
manifest.print "stylesheet 'jquery.ui/jqGrid.sass'\n"
|
|
110
|
+
|
|
111
|
+
FileUtils.mkdir_p(File.join(JQGRID_DEST_XML))
|
|
112
|
+
open File.join(JQGRID_DEST_XML, 'ellipsis-xbl.xml'), 'w' do |f|
|
|
113
|
+
f.print(File.read(File.join(JQGRID_SRC, 'css', 'ellipsis-xbl.xml')))
|
|
114
|
+
end
|
|
115
|
+
manifest.print "file 'public/stylesheets/ellipsis-xbl.xml'\n"
|
|
107
116
|
end
|
|
108
117
|
end
|
|
109
118
|
end
|
data/lib/jquery/jqgrid.rb
CHANGED
|
@@ -2,7 +2,8 @@ module ActionView
|
|
|
2
2
|
module Helpers
|
|
3
3
|
|
|
4
4
|
def jqgrid_javascripts(locale)
|
|
5
|
-
js = capture { javascript_include_tag "i18n/jqgrid/locale-#{locale}.min" }
|
|
5
|
+
js = capture { javascript_include_tag "i18n/jqgrid/locale-#{locale}.min" }
|
|
6
|
+
js << capture {javascript_tag "jQuery.jgrid.no_legacy_api = true;" }
|
|
6
7
|
js << capture { javascript_include_tag 'jquery.jqGrid.min' }
|
|
7
8
|
end
|
|
8
9
|
|
|
@@ -224,9 +225,9 @@ module ActionView
|
|
|
224
225
|
#{subgrid_inline_edit}
|
|
225
226
|
#{subgrid_direct_link}
|
|
226
227
|
height: '100%'
|
|
227
|
-
})
|
|
228
|
-
.navGrid
|
|
229
|
-
.navButtonAdd
|
|
228
|
+
});
|
|
229
|
+
jQuery("#"+subgrid_table_id).jqGrid('navGrid',"#"+pager_id,{edit:#{options[:subgrid][:edit]},add:#{options[:subgrid][:add]},del:#{options[:subgrid][:delete]},search:false});
|
|
230
|
+
jQuery("#"+subgrid_table_id).jqGrid('navButtonAdd',"#"+pager_id,{caption:"Search",title:"Toggle Search",buttonimg:'/images/jquery/search.png',
|
|
230
231
|
onClickButton:function(){
|
|
231
232
|
if(jQuery("#t_"+subgrid_table_id).css("display")=="none") {
|
|
232
233
|
jQuery("#t_"+subgrid_table_id).css("display","");
|
|
@@ -235,7 +236,7 @@ module ActionView
|
|
|
235
236
|
}
|
|
236
237
|
}
|
|
237
238
|
});
|
|
238
|
-
jQuery("#t_"+subgrid_table_id).height(25).hide().filterGrid
|
|
239
|
+
jQuery("#t_"+subgrid_table_id).height(25).hide().jqGrid('filterGrid',""+subgrid_table_id,{gridModel:true,gridToolbar:true});
|
|
239
240
|
},
|
|
240
241
|
subGridRowColapsed: function(subgrid_id, row_id) {
|
|
241
242
|
},
|
|
@@ -248,7 +249,7 @@ module ActionView
|
|
|
248
249
|
<script type="text/javascript">
|
|
249
250
|
var lastsel_#{id};
|
|
250
251
|
jQuery(document).ready(function(){
|
|
251
|
-
|
|
252
|
+
jQuery("##{id}").jqGrid({
|
|
252
253
|
// adding ?nd='+new Date().getTime() prevent IE caching
|
|
253
254
|
url:'#{action}?nd='+new Date().getTime(),
|
|
254
255
|
editurl:'#{options[:edit_url]}',
|
|
@@ -274,17 +275,17 @@ module ActionView
|
|
|
274
275
|
caption: "#{title}",
|
|
275
276
|
hidegrid: #{options[:hidegrid]}
|
|
276
277
|
});
|
|
277
|
-
jQuery("#t_#{id}").height(25).hide().filterGrid
|
|
278
|
+
jQuery("#t_#{id}").height(25).hide().jqGrid('filterGrid',"#{id}",{gridModel:true,gridToolbar:true});
|
|
278
279
|
#{multihandler}
|
|
279
280
|
#{selection_link}
|
|
280
|
-
jQuery("##{id}").
|
|
281
|
+
jQuery("##{id}").jqGrid('navGrid','##{id}_pager',{edit:#{edit_button},add:#{options[:add]},del:#{options[:delete]},search:false,refresh:true},
|
|
281
282
|
{afterSubmit:function(r,data){return #{options[:error_handler_return_value]}(r,data,'edit');} #{edit_options}},
|
|
282
283
|
{afterSubmit:function(r,data){return #{options[:error_handler_return_value]}(r,data,'add');} #{add_options}},
|
|
283
284
|
{afterSubmit:function(r,data){return #{options[:error_handler_return_value]}(r,data,'delete');} #{del_options}},
|
|
284
285
|
{#{search_options}}
|
|
285
|
-
)
|
|
286
|
+
);
|
|
286
287
|
|
|
287
|
-
.navButtonAdd
|
|
288
|
+
jQuery("##{id}").jqGrid('navButtonAdd',"##{id}_pager",{
|
|
288
289
|
caption:"#{I18n.t('jquery.jqgrid.search')}",
|
|
289
290
|
title:"#{I18n.t('jquery.jqgrid.toogle_search')}",
|
|
290
291
|
buttonicon:"ui-icon-search",
|
data/lib/jquery/jrails.rb
CHANGED
|
@@ -37,11 +37,10 @@ module ActionView
|
|
|
37
37
|
|
|
38
38
|
end
|
|
39
39
|
|
|
40
|
-
module PrototypeHelper
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
module PrototypeHelper
|
|
41
|
+
|
|
43
42
|
unless const_defined? :JQUERY_VAR
|
|
44
|
-
JQUERY_VAR = '
|
|
43
|
+
JQUERY_VAR = '$'
|
|
45
44
|
end
|
|
46
45
|
|
|
47
46
|
unless const_defined? :JQCALLBACKS
|
|
@@ -158,7 +157,7 @@ module ActionView
|
|
|
158
157
|
end
|
|
159
158
|
end
|
|
160
159
|
|
|
161
|
-
if
|
|
160
|
+
if respond_to?('protect_against_forgery?') && protect_against_forgery?
|
|
162
161
|
if js_options['data']
|
|
163
162
|
js_options['data'] << " + '&"
|
|
164
163
|
else
|
|
@@ -207,11 +206,10 @@ module ActionView
|
|
|
207
206
|
def build_callbacks(options)
|
|
208
207
|
callbacks = {}
|
|
209
208
|
options[:beforeSend] = '';
|
|
210
|
-
[:uninitialized,:loading].each do |key|
|
|
209
|
+
[:uninitialized,:loading,:loaded].each do |key|
|
|
211
210
|
options[:beforeSend] << (options[key].last == ';' ? options.delete(key) : options.delete(key) << ';') if options[key]
|
|
212
211
|
end
|
|
213
212
|
options.delete(:beforeSend) if options[:beforeSend].blank?
|
|
214
|
-
options[:complete] = options.delete(:loaded) if options[:loaded]
|
|
215
213
|
options[:error] = options.delete(:failure) if options[:failure]
|
|
216
214
|
if options[:update]
|
|
217
215
|
if options[:update].is_a?(Hash)
|
|
@@ -326,7 +324,7 @@ module ActionView
|
|
|
326
324
|
js_options = js_options.merge(effect[:options]) if effect[:options]
|
|
327
325
|
end
|
|
328
326
|
|
|
329
|
-
[:color, :direction
|
|
327
|
+
[:color, :direction].each do |option|
|
|
330
328
|
js_options[option] = "'#{js_options[option]}'" if js_options[option]
|
|
331
329
|
end
|
|
332
330
|
|
|
@@ -363,9 +361,9 @@ module ActionView
|
|
|
363
361
|
options[:dropOnEmpty] = false unless options[:dropOnEmpty]
|
|
364
362
|
options[:helper] = "'clone'" if options[:ghosting] == true
|
|
365
363
|
options[:axis] = case options.delete(:constraint)
|
|
366
|
-
when "vertical"
|
|
364
|
+
when "vertical"
|
|
367
365
|
"y"
|
|
368
|
-
when "horizontal"
|
|
366
|
+
when "horizontal"
|
|
369
367
|
"x"
|
|
370
368
|
when false
|
|
371
369
|
nil
|
|
@@ -377,13 +375,7 @@ module ActionView
|
|
|
377
375
|
options.delete(:ghosting)
|
|
378
376
|
|
|
379
377
|
if options[:onUpdate] || options[:url]
|
|
380
|
-
|
|
381
|
-
options[:with] ||= "#{JQUERY_VAR}(this).sortable('serialize',{key:'#{element_id}[]', expression:#{options[:format]}})"
|
|
382
|
-
options.delete(:format)
|
|
383
|
-
else
|
|
384
|
-
options[:with] ||= "#{JQUERY_VAR}(this).sortable('serialize',{key:'#{element_id}[]'})"
|
|
385
|
-
end
|
|
386
|
-
|
|
378
|
+
options[:with] ||= "#{JQUERY_VAR}(this).sortable('serialize',{key:'#{element_id}[]'})"
|
|
387
379
|
options[:onUpdate] ||= "function(){" + remote_function(options) + "}"
|
|
388
380
|
end
|
|
389
381
|
|
|
@@ -421,7 +413,7 @@ module ActionView
|
|
|
421
413
|
end
|
|
422
414
|
|
|
423
415
|
%(#{JQUERY_VAR}('#{jquery_id(element_id)}').droppable(#{options_for_javascript(options)});)
|
|
424
|
-
end
|
|
416
|
+
end
|
|
425
417
|
end
|
|
426
418
|
end
|
|
427
419
|
end
|
|
@@ -1,128 +1,132 @@
|
|
|
1
|
-
;(function($){
|
|
2
|
-
/**
|
|
3
|
-
* jqGrid Bulgarian Translation
|
|
4
|
-
* Tony Tomov tony@trirand.com
|
|
5
|
-
* http://trirand.com/blog/
|
|
6
|
-
* Dual licensed under the MIT and GPL licenses:
|
|
7
|
-
* http://www.opensource.org/licenses/mit-license.php
|
|
8
|
-
* http://www.gnu.org/licenses/gpl.html
|
|
9
|
-
**/
|
|
10
|
-
$.jgrid = {
|
|
11
|
-
defaults : {
|
|
12
|
-
recordtext: "{0} - {1} от {2}",
|
|
13
|
-
emptyrecords: "Няма запис(и)",
|
|
14
|
-
loadtext: "Зареждам...",
|
|
15
|
-
pgtext : "Стр. {0} от {1}"
|
|
16
|
-
},
|
|
17
|
-
search : {
|
|
18
|
-
caption: "Търсене...",
|
|
19
|
-
Find: "Намери",
|
|
20
|
-
Reset: "Изчисти",
|
|
21
|
-
odata : ['равно', 'различно', 'по-малко', 'по-малко или=','по-голямо','по-голямо или =', 'започва с','не започва с','се намира в','не се намира в','завършва с','не завършава с','съдържа', 'не съдържа' ],
|
|
22
|
-
groupOps: [ { op: "AND", text: " И " }, { op: "OR", text: "ИЛИ" } ],
|
|
23
|
-
matchText: " включи",
|
|
24
|
-
rulesText: " клауза"
|
|
25
|
-
},
|
|
26
|
-
edit : {
|
|
27
|
-
addCaption: "Нов Запис",
|
|
28
|
-
editCaption: "Редакция Запис",
|
|
29
|
-
bSubmit: "Запиши",
|
|
30
|
-
bCancel: "Изход",
|
|
31
|
-
bClose: "Затвори",
|
|
32
|
-
saveData: "Данните са променени! Да съхраня ли промените?",
|
|
33
|
-
bYes : "Да",
|
|
34
|
-
bNo : "Не",
|
|
35
|
-
bExit : "Отказ",
|
|
36
|
-
msg: {
|
|
37
|
-
required:"Полето е задължително",
|
|
38
|
-
number:"Въведете валидно число!",
|
|
39
|
-
minValue:"стойността трябва да е по-голяма или равна от",
|
|
40
|
-
maxValue:"стойността трябва да е по-малка или равна от",
|
|
41
|
-
email: "не е валиден ел. адрес",
|
|
42
|
-
integer: "Въведете валидно цяло число",
|
|
43
|
-
date: "Въведете валидна дата",
|
|
44
|
-
url: "e невалиден URL. Изискава се префикс('http://' или 'https://')"
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
},
|
|
51
|
-
|
|
52
|
-
caption: "
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
],
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
}
|
|
1
|
+
;(function($){
|
|
2
|
+
/**
|
|
3
|
+
* jqGrid Bulgarian Translation
|
|
4
|
+
* Tony Tomov tony@trirand.com
|
|
5
|
+
* http://trirand.com/blog/
|
|
6
|
+
* Dual licensed under the MIT and GPL licenses:
|
|
7
|
+
* http://www.opensource.org/licenses/mit-license.php
|
|
8
|
+
* http://www.gnu.org/licenses/gpl.html
|
|
9
|
+
**/
|
|
10
|
+
$.jgrid = {
|
|
11
|
+
defaults : {
|
|
12
|
+
recordtext: "{0} - {1} от {2}",
|
|
13
|
+
emptyrecords: "Няма запис(и)",
|
|
14
|
+
loadtext: "Зареждам...",
|
|
15
|
+
pgtext : "Стр. {0} от {1}"
|
|
16
|
+
},
|
|
17
|
+
search : {
|
|
18
|
+
caption: "Търсене...",
|
|
19
|
+
Find: "Намери",
|
|
20
|
+
Reset: "Изчисти",
|
|
21
|
+
odata : ['равно', 'различно', 'по-малко', 'по-малко или=','по-голямо','по-голямо или =', 'започва с','не започва с','се намира в','не се намира в','завършва с','не завършава с','съдържа', 'не съдържа' ],
|
|
22
|
+
groupOps: [ { op: "AND", text: " И " }, { op: "OR", text: "ИЛИ" } ],
|
|
23
|
+
matchText: " включи",
|
|
24
|
+
rulesText: " клауза"
|
|
25
|
+
},
|
|
26
|
+
edit : {
|
|
27
|
+
addCaption: "Нов Запис",
|
|
28
|
+
editCaption: "Редакция Запис",
|
|
29
|
+
bSubmit: "Запиши",
|
|
30
|
+
bCancel: "Изход",
|
|
31
|
+
bClose: "Затвори",
|
|
32
|
+
saveData: "Данните са променени! Да съхраня ли промените?",
|
|
33
|
+
bYes : "Да",
|
|
34
|
+
bNo : "Не",
|
|
35
|
+
bExit : "Отказ",
|
|
36
|
+
msg: {
|
|
37
|
+
required:"Полето е задължително",
|
|
38
|
+
number:"Въведете валидно число!",
|
|
39
|
+
minValue:"стойността трябва да е по-голяма или равна от",
|
|
40
|
+
maxValue:"стойността трябва да е по-малка или равна от",
|
|
41
|
+
email: "не е валиден ел. адрес",
|
|
42
|
+
integer: "Въведете валидно цяло число",
|
|
43
|
+
date: "Въведете валидна дата",
|
|
44
|
+
url: "e невалиден URL. Изискава се префикс('http://' или 'https://')",
|
|
45
|
+
nodefined : " е недефинирана!",
|
|
46
|
+
novalue : " изисква връщане на стойност!",
|
|
47
|
+
customarray : "Потреб. Функция трябва да върне масив!",
|
|
48
|
+
customfcheck : "Потребителска функция е задължителна при този тип елемент!"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
view : {
|
|
52
|
+
caption: "Преглед запис",
|
|
53
|
+
bClose: "Затвори"
|
|
54
|
+
},
|
|
55
|
+
del : {
|
|
56
|
+
caption: "Изтриване",
|
|
57
|
+
msg: "Да изтрия ли избраният запис?",
|
|
58
|
+
bSubmit: "Изтрий",
|
|
59
|
+
bCancel: "Отказ"
|
|
60
|
+
},
|
|
61
|
+
nav : {
|
|
62
|
+
edittext: " ",
|
|
63
|
+
edittitle: "Редакция избран запис",
|
|
64
|
+
addtext:" ",
|
|
65
|
+
addtitle: "Добавяне нов запис",
|
|
66
|
+
deltext: " ",
|
|
67
|
+
deltitle: "Изтриване избран запис",
|
|
68
|
+
searchtext: " ",
|
|
69
|
+
searchtitle: "Търсене запис(и)",
|
|
70
|
+
refreshtext: "",
|
|
71
|
+
refreshtitle: "Обнови таблица",
|
|
72
|
+
alertcap: "Предупреждение",
|
|
73
|
+
alerttext: "Моля, изберете запис",
|
|
74
|
+
viewtext: "",
|
|
75
|
+
viewtitle: "Преглед избран запис"
|
|
76
|
+
},
|
|
77
|
+
col : {
|
|
78
|
+
caption: "Избери колони",
|
|
79
|
+
bSubmit: "Ок",
|
|
80
|
+
bCancel: "Изход"
|
|
81
|
+
},
|
|
82
|
+
errors : {
|
|
83
|
+
errcap : "Грешка",
|
|
84
|
+
nourl : "Няма посочен url адрес",
|
|
85
|
+
norecords: "Няма запис за обработка",
|
|
86
|
+
model : "Модела не съответства на имената!"
|
|
87
|
+
},
|
|
88
|
+
formatter : {
|
|
89
|
+
integer : {thousandsSeparator: " ", defaultValue: '0'},
|
|
90
|
+
number : {decimalSeparator:".", thousandsSeparator: " ", decimalPlaces: 2, defaultValue: '0.00'},
|
|
91
|
+
currency : {decimalSeparator:".", thousandsSeparator: " ", decimalPlaces: 2, prefix: "", suffix:" лв.", defaultValue: '0.00'},
|
|
92
|
+
date : {
|
|
93
|
+
dayNames: [
|
|
94
|
+
"Нед", "Пон", "Вт", "Ср", "Чет", "Пет", "Съб",
|
|
95
|
+
"Неделя", "Понеделник", "Вторник", "Сряда", "Четвъртък", "Петък", "Събота"
|
|
96
|
+
],
|
|
97
|
+
monthNames: [
|
|
98
|
+
"Яну", "Фев", "Мар", "Апр", "Май", "Юни", "Юли", "Авг", "Сеп", "Окт", "Нов", "Дек",
|
|
99
|
+
"Януари", "Февруари", "Март", "Април", "Май", "Юни", "Юли", "Август", "Септември", "Октомври", "Ноември", "Декември"
|
|
100
|
+
],
|
|
101
|
+
AmPm : ["","","",""],
|
|
102
|
+
S: function (j) {
|
|
103
|
+
if(j==7 || j==8 || j== 27 || j== 28) {
|
|
104
|
+
return 'ми';
|
|
105
|
+
}
|
|
106
|
+
return ['ви', 'ри', 'ти'][Math.min((j - 1) % 10, 2)];
|
|
107
|
+
},
|
|
108
|
+
srcformat: 'Y-m-d',
|
|
109
|
+
newformat: 'd/m/Y',
|
|
110
|
+
masks : {
|
|
111
|
+
ISO8601Long:"Y-m-d H:i:s",
|
|
112
|
+
ISO8601Short:"Y-m-d",
|
|
113
|
+
ShortDate: "n/j/Y",
|
|
114
|
+
LongDate: "l, F d, Y",
|
|
115
|
+
FullDateTime: "l, F d, Y g:i:s A",
|
|
116
|
+
MonthDay: "F d",
|
|
117
|
+
ShortTime: "g:i A",
|
|
118
|
+
LongTime: "g:i:s A",
|
|
119
|
+
SortableDateTime: "Y-m-d\\TH:i:s",
|
|
120
|
+
UniversalSortableDateTime: "Y-m-d H:i:sO",
|
|
121
|
+
YearMonth: "F, Y"
|
|
122
|
+
},
|
|
123
|
+
reformatAfterEdit : false
|
|
124
|
+
},
|
|
125
|
+
baseLinkUrl: '',
|
|
126
|
+
showAction: '',
|
|
127
|
+
target: '',
|
|
128
|
+
checkbox : {disabled:true},
|
|
129
|
+
idName : 'id'
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
})(jQuery);
|