jqgrid-jquery-rails 4.5.2.0 → 4.5.200
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 +13 -5
- data/.gitignore +6 -1
- data/.rspec +2 -0
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/.travis.yml +4 -0
- data/Gemfile +5 -1
- data/README.md +8 -3
- data/Rakefile +32 -1
- data/jqgrid-jquery-rails.gemspec +8 -1
- data/lib/jqgrid-jquery-rails/version.rb +8 -7
- data/script/rails +8 -0
- data/spec/features/asset_pipeline_spec.rb +21 -0
- data/spec/jqgrid-jquery-rails_spec.rb +11 -0
- data/spec/spec_helper.rb +56 -0
- data/spec/test_app/Rakefile +7 -0
- data/spec/test_app/app/assets/javascripts/application.js +2 -0
- data/spec/test_app/app/assets/stylesheets/application.css +4 -0
- data/spec/test_app/app/controllers/application_controller.rb +6 -0
- data/spec/test_app/app/views/application/index.html.erb +0 -0
- data/spec/test_app/app/views/layouts/application.html.erb +14 -0
- data/spec/test_app/config.ru +4 -0
- data/spec/test_app/config/application.rb +64 -0
- data/spec/test_app/config/boot.rb +10 -0
- data/spec/test_app/config/database.yml +25 -0
- data/spec/test_app/config/environment.rb +5 -0
- data/spec/test_app/config/environments/development.rb +37 -0
- data/spec/test_app/config/environments/test.rb +37 -0
- data/spec/test_app/config/initializers/secret_token.rb +7 -0
- data/spec/test_app/config/initializers/session_store.rb +8 -0
- data/spec/test_app/config/initializers/wrap_parameters.rb +14 -0
- data/spec/test_app/config/routes.rb +3 -0
- data/spec/test_app/db/schema.rb +16 -0
- data/spec/test_app/public/404.html +26 -0
- data/spec/test_app/public/422.html +26 -0
- data/spec/test_app/public/500.html +25 -0
- data/spec/test_app/public/favicon.ico +0 -0
- data/spec/test_app/script/rails +6 -0
- data/vendor/assets/javascripts/i18n/grid.locale-ar.js +126 -126
- data/vendor/assets/javascripts/i18n/grid.locale-fa.js +144 -144
- data/vendor/assets/javascripts/i18n/grid.locale-fi.js +129 -129
- data/vendor/assets/javascripts/i18n/grid.locale-fr.js +126 -126
- data/vendor/assets/javascripts/i18n/grid.locale-hr.js +161 -161
- data/vendor/assets/javascripts/i18n/grid.locale-hr1250.js +161 -161
- data/vendor/assets/javascripts/i18n/grid.locale-id.js +168 -168
- data/vendor/assets/javascripts/i18n/grid.locale-is.js +126 -126
- data/vendor/assets/javascripts/i18n/grid.locale-mne.js +128 -128
- data/vendor/assets/javascripts/i18n/grid.locale-no.js +1 -1
- data/vendor/assets/javascripts/i18n/grid.locale-sr-latin.js +128 -128
- data/vendor/assets/javascripts/i18n/grid.locale-sr.js +128 -128
- data/vendor/assets/javascripts/i18n/grid.locale-th.js +128 -128
- data/vendor/assets/javascripts/jqgrid-jquery-rails.js +1 -1
- metadata +163 -8
@@ -0,0 +1,37 @@
|
|
1
|
+
TestApp::Application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb
|
3
|
+
|
4
|
+
# The test environment is used exclusively to run your application's
|
5
|
+
# test suite. You never need to work with it otherwise. Remember that
|
6
|
+
# your test database is "scratch space" for the test suite and is wiped
|
7
|
+
# and recreated between test runs. Don't rely on the data there!
|
8
|
+
config.cache_classes = true
|
9
|
+
|
10
|
+
# Configure static asset server for tests with Cache-Control for performance
|
11
|
+
config.serve_static_assets = true
|
12
|
+
config.static_cache_control = "public, max-age=3600"
|
13
|
+
|
14
|
+
# Log error messages when you accidentally call methods on nil
|
15
|
+
config.whiny_nils = true
|
16
|
+
|
17
|
+
# Show full error reports and disable caching
|
18
|
+
config.consider_all_requests_local = true
|
19
|
+
config.action_controller.perform_caching = false
|
20
|
+
|
21
|
+
# Raise exceptions instead of rendering exception templates
|
22
|
+
config.action_dispatch.show_exceptions = false
|
23
|
+
|
24
|
+
# Disable request forgery protection in test environment
|
25
|
+
config.action_controller.allow_forgery_protection = false
|
26
|
+
|
27
|
+
# Tell Action Mailer not to deliver emails to the real world.
|
28
|
+
# The :test delivery method accumulates sent emails in the
|
29
|
+
# ActionMailer::Base.deliveries array.
|
30
|
+
config.action_mailer.delivery_method = :test
|
31
|
+
|
32
|
+
# Raise exception on mass assignment protection for Active Record models
|
33
|
+
config.active_record.mass_assignment_sanitizer = :strict
|
34
|
+
|
35
|
+
# Print deprecation notices to the stderr
|
36
|
+
config.active_support.deprecation = :stderr
|
37
|
+
end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Your secret key for verifying the integrity of signed cookies.
|
4
|
+
# If you change this key, all old signed cookies will become invalid!
|
5
|
+
# Make sure the secret is at least 30 characters and all random,
|
6
|
+
# no regular words or you'll be exposed to dictionary attacks.
|
7
|
+
TestApp::Application.config.secret_token = '5b809d9363fd61076807b0f9468166b4ff57d39259be745752da9e50f528e4c32c14827df60b8e894ad3c7a902654e5e8b5bd2f6a51b1db7dc4b82ee426f1b77'
|
@@ -0,0 +1,8 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
TestApp::Application.config.session_store :cookie_store, key: '_test_app_session'
|
4
|
+
|
5
|
+
# Use the database for sessions instead of the cookie-based default,
|
6
|
+
# which shouldn't be used to store highly confidential information
|
7
|
+
# (create the session table with "rails generate session_migration")
|
8
|
+
# TestApp::Application.config.session_store :active_record_store
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
#
|
3
|
+
# This file contains settings for ActionController::ParamsWrapper which
|
4
|
+
# is enabled by default.
|
5
|
+
|
6
|
+
# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
|
7
|
+
ActiveSupport.on_load(:action_controller) do
|
8
|
+
wrap_parameters format: [:json]
|
9
|
+
end
|
10
|
+
|
11
|
+
# Disable root element in JSON by default.
|
12
|
+
ActiveSupport.on_load(:active_record) do
|
13
|
+
self.include_root_in_json = false
|
14
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
# This file is auto-generated from the current state of the database. Instead
|
3
|
+
# of editing this file, please use the migrations feature of Active Record to
|
4
|
+
# incrementally modify your database, and then regenerate this schema definition.
|
5
|
+
#
|
6
|
+
# Note that this schema.rb definition is the authoritative source for your
|
7
|
+
# database schema. If you need to create the application database on another
|
8
|
+
# system, you should be using db:schema:load, not running all the migrations
|
9
|
+
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
|
10
|
+
# you'll amass, the slower it'll run and the greater likelihood for issues).
|
11
|
+
#
|
12
|
+
# It's strongly recommended to check this file into your version control system.
|
13
|
+
|
14
|
+
ActiveRecord::Schema.define(:version => 0) do
|
15
|
+
|
16
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/404.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
23
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/422.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The change you wanted was rejected.</h1>
|
23
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/500.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>We're sorry, but something went wrong.</h1>
|
23
|
+
</div>
|
24
|
+
</body>
|
25
|
+
</html>
|
File without changes
|
@@ -0,0 +1,6 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
3
|
+
|
4
|
+
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
5
|
+
require File.expand_path('../../config/boot', __FILE__)
|
6
|
+
require 'rails/commands'
|
@@ -1,126 +1,126 @@
|
|
1
|
-
;(function($){
|
2
|
-
/**
|
3
|
-
* jqGrid Arabic Translation
|
4
|
-
*
|
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 = $.jgrid || {};
|
11
|
-
$.extend($.jgrid,{
|
12
|
-
defaults : {
|
13
|
-
recordtext: "تسجيل {0} - {1} على {2}",
|
14
|
-
emptyrecords: "لا يوجد تسجيل",
|
15
|
-
loadtext: "تحميل...",
|
16
|
-
pgtext : "صفحة {0} على {1}"
|
17
|
-
},
|
18
|
-
search : {
|
19
|
-
caption: "بحث...",
|
20
|
-
Find: "بحث",
|
21
|
-
Reset: "إلغاء",
|
22
|
-
odata: [{ oper:'eq', text:"يساوي"},{ oper:'ne', text:"يختلف"},{ oper:'lt', text:"أقل"},{ oper:'le', text:"أقل أو يساوي"},{ oper:'gt', text:"أكبر"},{ oper:'ge', text:"أكبر أو يساوي"},{ oper:'bw', text:"يبدأ بـ"},{ oper:'bn', text:"لا يبدأ بـ"},{ oper:'in', text:"est dans"},{ oper:'ni', text:"n'est pas dans"},{ oper:'ew', text:"ينته بـ"},{ oper:'en', text:"لا ينته بـ"},{ oper:'cn', text:"يحتوي"},{ oper:'nc', text:"لا يحتوي"}],
|
23
|
-
groupOps: [ { op: "مع", text: "الكل" }, { op: "أو", text: "لا أحد" } ]
|
24
|
-
},
|
25
|
-
edit : {
|
26
|
-
addCaption: "اضافة",
|
27
|
-
editCaption: "تحديث",
|
28
|
-
bSubmit: "تثبيث",
|
29
|
-
bCancel: "إلغاء",
|
30
|
-
bClose: "غلق",
|
31
|
-
saveData: "تغيرت المعطيات هل تريد التسجيل ?",
|
32
|
-
bYes: "نعم",
|
33
|
-
bNo: "لا",
|
34
|
-
bExit: "إلغاء",
|
35
|
-
msg: {
|
36
|
-
required: "خانة إجبارية",
|
37
|
-
number: "سجل رقم صحيح",
|
38
|
-
minValue: "يجب أن تكون القيمة أكبر أو تساوي 0",
|
39
|
-
maxValue: "يجب أن تكون القيمة أقل أو تساوي 0",
|
40
|
-
email: "بريد غير صحيح",
|
41
|
-
integer: "سجل عدد طبييعي صحيح",
|
42
|
-
url: "ليس عنوانا صحيحا. البداية الصحيحة ('http://' أو 'https://')",
|
43
|
-
nodefined : " ليس محدد!",
|
44
|
-
novalue : " قيمة الرجوع مطلوبة!",
|
45
|
-
customarray : "يجب على الدالة الشخصية أن تنتج جدولا",
|
46
|
-
customfcheck : "الدالة الشخصية مطلوبة في حالة التحقق الشخصي"
|
47
|
-
}
|
48
|
-
},
|
49
|
-
view : {
|
50
|
-
caption: "رأيت التسجيلات",
|
51
|
-
bClose: "غلق"
|
52
|
-
},
|
53
|
-
del : {
|
54
|
-
caption: "حذف",
|
55
|
-
msg: "حذف التسجيلات المختارة ?",
|
56
|
-
bSubmit: "حذف",
|
57
|
-
bCancel: "إلغاء"
|
58
|
-
},
|
59
|
-
nav : {
|
60
|
-
edittext: " ",
|
61
|
-
edittitle: "تغيير التسجيل المختار",
|
62
|
-
addtext:" ",
|
63
|
-
addtitle: "إضافة تسجيل",
|
64
|
-
deltext: " ",
|
65
|
-
deltitle: "حذف التسجيل المختار",
|
66
|
-
searchtext: " ",
|
67
|
-
searchtitle: "بحث عن تسجيل",
|
68
|
-
refreshtext: "",
|
69
|
-
refreshtitle: "تحديث الجدول",
|
70
|
-
alertcap: "تحذير",
|
71
|
-
alerttext: "يرجى إختيار السطر",
|
72
|
-
viewtext: "",
|
73
|
-
viewtitle: "إظهار السطر المختار"
|
74
|
-
},
|
75
|
-
col : {
|
76
|
-
caption: "إظهار/إخفاء الأعمدة",
|
77
|
-
bSubmit: "تثبيث",
|
78
|
-
bCancel: "إلغاء"
|
79
|
-
},
|
80
|
-
errors : {
|
81
|
-
errcap : "خطأ",
|
82
|
-
nourl : "لا يوجد عنوان محدد",
|
83
|
-
norecords: "لا يوجد تسجيل للمعالجة",
|
84
|
-
model : "عدد العناوين (colNames) <> عدد التسجيلات (colModel)!"
|
85
|
-
},
|
86
|
-
formatter : {
|
87
|
-
integer : {thousandsSeparator: " ", defaultValue: '0'},
|
88
|
-
number : {decimalSeparator:",", thousandsSeparator: " ", decimalPlaces: 2, defaultValue: '0,00'},
|
89
|
-
currency : {decimalSeparator:",", thousandsSeparator: " ", decimalPlaces: 2, prefix: "", suffix:"", defaultValue: '0,00'},
|
90
|
-
date : {
|
91
|
-
dayNames: [
|
92
|
-
"الأحد", "الإثنين", "الثلاثاء", "الأربعاء", "الخميس", "الجمعة", "السبت",
|
93
|
-
"الأحد", "الإثنين", "الثلاثاء", "الأربعاء", "الخميس", "الجمعة", "السبت"
|
94
|
-
],
|
95
|
-
monthNames: [
|
96
|
-
"جانفي", "فيفري", "مارس", "أفريل", "ماي", "جوان", "جويلية", "أوت", "سبتمبر", "أكتوبر", "نوفمبر", "ديسمبر",
|
97
|
-
"جانفي", "فيفري", "مارس", "أفريل", "ماي", "جوان", "جويلية", "أوت", "سبتمبر", "أكتوبر", "نوفمبر", "ديسمبر"
|
98
|
-
],
|
99
|
-
AmPm : ["صباحا","مساءا","صباحا","مساءا"],
|
100
|
-
S: function (j) {return j == 1 ? 'er' : 'e';},
|
101
|
-
srcformat: 'Y-m-d',
|
102
|
-
newformat: 'd/m/Y',
|
103
|
-
parseRe : /[Tt\\\/:_;.,\t\s-]/,
|
104
|
-
masks : {
|
105
|
-
ISO8601Long:"Y-m-d H:i:s",
|
106
|
-
ISO8601Short:"Y-m-d",
|
107
|
-
ShortDate: "n/j/Y",
|
108
|
-
LongDate: "l, F d, Y",
|
109
|
-
FullDateTime: "l, F d, Y g:i:s A",
|
110
|
-
MonthDay: "F d",
|
111
|
-
ShortTime: "g:i A",
|
112
|
-
LongTime: "g:i:s A",
|
113
|
-
SortableDateTime: "Y-m-d\\TH:i:s",
|
114
|
-
UniversalSortableDateTime: "Y-m-d H:i:sO",
|
115
|
-
YearMonth: "F, Y"
|
116
|
-
},
|
117
|
-
reformatAfterEdit : false
|
118
|
-
},
|
119
|
-
baseLinkUrl: '',
|
120
|
-
showAction: '',
|
121
|
-
target: '',
|
122
|
-
checkbox : {disabled:true},
|
123
|
-
idName : 'id'
|
124
|
-
}
|
125
|
-
});
|
126
|
-
})(jQuery);
|
1
|
+
;(function($){
|
2
|
+
/**
|
3
|
+
* jqGrid Arabic Translation
|
4
|
+
*
|
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 = $.jgrid || {};
|
11
|
+
$.extend($.jgrid,{
|
12
|
+
defaults : {
|
13
|
+
recordtext: "تسجيل {0} - {1} على {2}",
|
14
|
+
emptyrecords: "لا يوجد تسجيل",
|
15
|
+
loadtext: "تحميل...",
|
16
|
+
pgtext : "صفحة {0} على {1}"
|
17
|
+
},
|
18
|
+
search : {
|
19
|
+
caption: "بحث...",
|
20
|
+
Find: "بحث",
|
21
|
+
Reset: "إلغاء",
|
22
|
+
odata: [{ oper:'eq', text:"يساوي"},{ oper:'ne', text:"يختلف"},{ oper:'lt', text:"أقل"},{ oper:'le', text:"أقل أو يساوي"},{ oper:'gt', text:"أكبر"},{ oper:'ge', text:"أكبر أو يساوي"},{ oper:'bw', text:"يبدأ بـ"},{ oper:'bn', text:"لا يبدأ بـ"},{ oper:'in', text:"est dans"},{ oper:'ni', text:"n'est pas dans"},{ oper:'ew', text:"ينته بـ"},{ oper:'en', text:"لا ينته بـ"},{ oper:'cn', text:"يحتوي"},{ oper:'nc', text:"لا يحتوي"}],
|
23
|
+
groupOps: [ { op: "مع", text: "الكل" }, { op: "أو", text: "لا أحد" } ]
|
24
|
+
},
|
25
|
+
edit : {
|
26
|
+
addCaption: "اضافة",
|
27
|
+
editCaption: "تحديث",
|
28
|
+
bSubmit: "تثبيث",
|
29
|
+
bCancel: "إلغاء",
|
30
|
+
bClose: "غلق",
|
31
|
+
saveData: "تغيرت المعطيات هل تريد التسجيل ?",
|
32
|
+
bYes: "نعم",
|
33
|
+
bNo: "لا",
|
34
|
+
bExit: "إلغاء",
|
35
|
+
msg: {
|
36
|
+
required: "خانة إجبارية",
|
37
|
+
number: "سجل رقم صحيح",
|
38
|
+
minValue: "يجب أن تكون القيمة أكبر أو تساوي 0",
|
39
|
+
maxValue: "يجب أن تكون القيمة أقل أو تساوي 0",
|
40
|
+
email: "بريد غير صحيح",
|
41
|
+
integer: "سجل عدد طبييعي صحيح",
|
42
|
+
url: "ليس عنوانا صحيحا. البداية الصحيحة ('http://' أو 'https://')",
|
43
|
+
nodefined : " ليس محدد!",
|
44
|
+
novalue : " قيمة الرجوع مطلوبة!",
|
45
|
+
customarray : "يجب على الدالة الشخصية أن تنتج جدولا",
|
46
|
+
customfcheck : "الدالة الشخصية مطلوبة في حالة التحقق الشخصي"
|
47
|
+
}
|
48
|
+
},
|
49
|
+
view : {
|
50
|
+
caption: "رأيت التسجيلات",
|
51
|
+
bClose: "غلق"
|
52
|
+
},
|
53
|
+
del : {
|
54
|
+
caption: "حذف",
|
55
|
+
msg: "حذف التسجيلات المختارة ?",
|
56
|
+
bSubmit: "حذف",
|
57
|
+
bCancel: "إلغاء"
|
58
|
+
},
|
59
|
+
nav : {
|
60
|
+
edittext: " ",
|
61
|
+
edittitle: "تغيير التسجيل المختار",
|
62
|
+
addtext:" ",
|
63
|
+
addtitle: "إضافة تسجيل",
|
64
|
+
deltext: " ",
|
65
|
+
deltitle: "حذف التسجيل المختار",
|
66
|
+
searchtext: " ",
|
67
|
+
searchtitle: "بحث عن تسجيل",
|
68
|
+
refreshtext: "",
|
69
|
+
refreshtitle: "تحديث الجدول",
|
70
|
+
alertcap: "تحذير",
|
71
|
+
alerttext: "يرجى إختيار السطر",
|
72
|
+
viewtext: "",
|
73
|
+
viewtitle: "إظهار السطر المختار"
|
74
|
+
},
|
75
|
+
col : {
|
76
|
+
caption: "إظهار/إخفاء الأعمدة",
|
77
|
+
bSubmit: "تثبيث",
|
78
|
+
bCancel: "إلغاء"
|
79
|
+
},
|
80
|
+
errors : {
|
81
|
+
errcap : "خطأ",
|
82
|
+
nourl : "لا يوجد عنوان محدد",
|
83
|
+
norecords: "لا يوجد تسجيل للمعالجة",
|
84
|
+
model : "عدد العناوين (colNames) <> عدد التسجيلات (colModel)!"
|
85
|
+
},
|
86
|
+
formatter : {
|
87
|
+
integer : {thousandsSeparator: " ", defaultValue: '0'},
|
88
|
+
number : {decimalSeparator:",", thousandsSeparator: " ", decimalPlaces: 2, defaultValue: '0,00'},
|
89
|
+
currency : {decimalSeparator:",", thousandsSeparator: " ", decimalPlaces: 2, prefix: "", suffix:"", defaultValue: '0,00'},
|
90
|
+
date : {
|
91
|
+
dayNames: [
|
92
|
+
"الأحد", "الإثنين", "الثلاثاء", "الأربعاء", "الخميس", "الجمعة", "السبت",
|
93
|
+
"الأحد", "الإثنين", "الثلاثاء", "الأربعاء", "الخميس", "الجمعة", "السبت"
|
94
|
+
],
|
95
|
+
monthNames: [
|
96
|
+
"جانفي", "فيفري", "مارس", "أفريل", "ماي", "جوان", "جويلية", "أوت", "سبتمبر", "أكتوبر", "نوفمبر", "ديسمبر",
|
97
|
+
"جانفي", "فيفري", "مارس", "أفريل", "ماي", "جوان", "جويلية", "أوت", "سبتمبر", "أكتوبر", "نوفمبر", "ديسمبر"
|
98
|
+
],
|
99
|
+
AmPm : ["صباحا","مساءا","صباحا","مساءا"],
|
100
|
+
S: function (j) {return j == 1 ? 'er' : 'e';},
|
101
|
+
srcformat: 'Y-m-d',
|
102
|
+
newformat: 'd/m/Y',
|
103
|
+
parseRe : /[Tt\\\/:_;.,\t\s-]/,
|
104
|
+
masks : {
|
105
|
+
ISO8601Long:"Y-m-d H:i:s",
|
106
|
+
ISO8601Short:"Y-m-d",
|
107
|
+
ShortDate: "n/j/Y",
|
108
|
+
LongDate: "l, F d, Y",
|
109
|
+
FullDateTime: "l, F d, Y g:i:s A",
|
110
|
+
MonthDay: "F d",
|
111
|
+
ShortTime: "g:i A",
|
112
|
+
LongTime: "g:i:s A",
|
113
|
+
SortableDateTime: "Y-m-d\\TH:i:s",
|
114
|
+
UniversalSortableDateTime: "Y-m-d H:i:sO",
|
115
|
+
YearMonth: "F, Y"
|
116
|
+
},
|
117
|
+
reformatAfterEdit : false
|
118
|
+
},
|
119
|
+
baseLinkUrl: '',
|
120
|
+
showAction: '',
|
121
|
+
target: '',
|
122
|
+
checkbox : {disabled:true},
|
123
|
+
idName : 'id'
|
124
|
+
}
|
125
|
+
});
|
126
|
+
})(jQuery);
|
@@ -1,145 +1,145 @@
|
|
1
|
-
;(function ($) {
|
2
|
-
/**
|
3
|
-
* jqGrid Persian Translation
|
4
|
-
* Dual licensed under the MIT and GPL licenses:
|
5
|
-
* http://www.opensource.org/licenses/mit-license.php
|
6
|
-
* http://www.gnu.org/licenses/gpl.html
|
7
|
-
**/
|
8
|
-
$.jgrid = $.jgrid || {};
|
9
|
-
$.extend($.jgrid,{
|
10
|
-
defaults: {
|
11
|
-
recordtext: "نمابش {0} - {1} از {2}",
|
12
|
-
emptyrecords: "رکوردی یافت نشد",
|
13
|
-
loadtext: "بارگزاري...",
|
14
|
-
pgtext: "صفحه {0} از {1}"
|
15
|
-
},
|
16
|
-
search: {
|
17
|
-
caption: "جستجو...",
|
18
|
-
Find: "يافته ها",
|
19
|
-
Reset: "از نو",
|
20
|
-
odata: [{ oper:'eq', text:"برابر"},{ oper:'ne', text:"نا برابر"},{ oper:'lt', text:"به"},{ oper:'le', text:"کوچکتر"},{ oper:'gt', text:"از"},{ oper:'ge', text:"بزرگتر"},{ oper:'bw', text:"شروع با"},{ oper:'bn', text:"شروع نشود با"},{ oper:'in', text:"نباشد"},{ oper:'ni', text:"عضو این نباشد"},{ oper:'ew', text:"اتمام با"},{ oper:'en', text:"تمام نشود با"},{ oper:'cn', text:"حاوی"},{ oper:'nc', text:"نباشد حاوی"}],
|
21
|
-
groupOps: [{
|
22
|
-
op: "AND",
|
23
|
-
text: "کل"
|
24
|
-
},
|
25
|
-
{
|
26
|
-
op: "OR",
|
27
|
-
text: "مجموع"
|
28
|
-
}]
|
29
|
-
},
|
30
|
-
edit: {
|
31
|
-
addCaption: "اضافه کردن رکورد",
|
32
|
-
editCaption: "ويرايش رکورد",
|
33
|
-
bSubmit: "ثبت",
|
34
|
-
bCancel: "انصراف",
|
35
|
-
bClose: "بستن",
|
36
|
-
saveData: "دیتا تعییر کرد! ذخیره شود؟",
|
37
|
-
bYes: "بله",
|
38
|
-
bNo: "خیر",
|
39
|
-
bExit: "انصراف",
|
40
|
-
msg: {
|
41
|
-
required: "فيلدها بايد ختما پر شوند",
|
42
|
-
number: "لطفا عدد وعتبر وارد کنيد",
|
43
|
-
minValue: "مقدار وارد شده بايد بزرگتر يا مساوي با",
|
44
|
-
maxValue: "مقدار وارد شده بايد کوچکتر يا مساوي",
|
45
|
-
email: "پست الکترونيک وارد شده معتبر نيست",
|
46
|
-
integer: "لطفا يک عدد صحيح وارد کنيد",
|
47
|
-
date: "لطفا يک تاريخ معتبر وارد کنيد",
|
48
|
-
url: "این آدرس صحیح نمی باشد. پیشوند نیاز است ('http://' یا 'https://')",
|
49
|
-
nodefined: " تعریف نشده!",
|
50
|
-
novalue: " مقدار برگشتی اجباری است!",
|
51
|
-
customarray: "تابع شما باید مقدار آرایه داشته باشد!",
|
52
|
-
customfcheck: "برای داشتن متد دلخواه شما باید سطون با چکینگ دلخواه داشته باشید!"
|
53
|
-
}
|
54
|
-
},
|
55
|
-
view: {
|
56
|
-
caption: "نمایش رکورد",
|
57
|
-
bClose: "بستن"
|
58
|
-
},
|
59
|
-
del: {
|
60
|
-
caption: "حذف",
|
61
|
-
msg: "از حذف گزينه هاي انتخاب شده مطمئن هستيد؟",
|
62
|
-
bSubmit: "حذف",
|
63
|
-
bCancel: "ابطال"
|
64
|
-
},
|
65
|
-
nav: {
|
66
|
-
edittext: " ",
|
67
|
-
edittitle: "ويرايش رديف هاي انتخاب شده",
|
68
|
-
addtext: " ",
|
69
|
-
addtitle: "افزودن رديف جديد",
|
70
|
-
deltext: " ",
|
71
|
-
deltitle: "حذف ردبف هاي انتیاب شده",
|
72
|
-
searchtext: " ",
|
73
|
-
searchtitle: "جستجوي رديف",
|
74
|
-
refreshtext: "",
|
75
|
-
refreshtitle: "بازيابي مجدد صفحه",
|
76
|
-
alertcap: "اخطار",
|
77
|
-
alerttext: "لطفا يک رديف انتخاب کنيد",
|
78
|
-
viewtext: "",
|
79
|
-
viewtitle: "نمایش رکورد های انتخاب شده"
|
80
|
-
},
|
81
|
-
col: {
|
82
|
-
caption: "نمايش/عدم نمايش ستون",
|
83
|
-
bSubmit: "ثبت",
|
84
|
-
bCancel: "انصراف"
|
85
|
-
},
|
86
|
-
errors: {
|
87
|
-
errcap: "خطا",
|
88
|
-
nourl: "هيچ آدرسي تنظيم نشده است",
|
89
|
-
norecords: "هيچ رکوردي براي پردازش موجود نيست",
|
90
|
-
model: "طول نام ستون ها محالف ستون هاي مدل مي باشد!"
|
91
|
-
},
|
92
|
-
formatter: {
|
93
|
-
integer: {
|
94
|
-
thousandsSeparator: " ",
|
95
|
-
defaultValue: "0"
|
96
|
-
},
|
97
|
-
number: {
|
98
|
-
decimalSeparator: ".",
|
99
|
-
thousandsSeparator: " ",
|
100
|
-
decimalPlaces: 2,
|
101
|
-
defaultValue: "0.00"
|
102
|
-
},
|
103
|
-
currency: {
|
104
|
-
decimalSeparator: ".",
|
105
|
-
thousandsSeparator: " ",
|
106
|
-
decimalPlaces: 2,
|
107
|
-
prefix: "",
|
108
|
-
suffix: "",
|
109
|
-
defaultValue: "0"
|
110
|
-
},
|
111
|
-
date: {
|
112
|
-
dayNames: ["يک", "دو", "سه", "چهار", "پنج", "جمع", "شنب", "يکشنبه", "دوشنبه", "سه شنبه", "چهارشنبه", "پنجشنبه", "جمعه", "شنبه"],
|
113
|
-
monthNames: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", "ژانويه", "فوريه", "مارس", "آوريل", "مه", "ژوئن", "ژوئيه", "اوت", "سپتامبر", "اکتبر", "نوامبر", "December"],
|
114
|
-
AmPm: ["ب.ظ", "ب.ظ", "ق.ظ", "ق.ظ"],
|
115
|
-
S: function (b) {
|
116
|
-
return b < 11 || b > 13 ? ["st", "nd", "rd", "th"][Math.min((b - 1) % 10, 3)] : "th"
|
117
|
-
},
|
118
|
-
srcformat: "Y-m-d",
|
119
|
-
newformat: "d/m/Y",
|
120
|
-
parseRe : /[Tt\\\/:_;.,\t\s-]/,
|
121
|
-
masks: {
|
122
|
-
ISO8601Long: "Y-m-d H:i:s",
|
123
|
-
ISO8601Short: "Y-m-d",
|
124
|
-
ShortDate: "n/j/Y",
|
125
|
-
LongDate: "l, F d, Y",
|
126
|
-
FullDateTime: "l, F d, Y g:i:s A",
|
127
|
-
MonthDay: "F d",
|
128
|
-
ShortTime: "g:i A",
|
129
|
-
LongTime: "g:i:s A",
|
130
|
-
SortableDateTime: "Y-m-d\\TH:i:s",
|
131
|
-
UniversalSortableDateTime: "Y-m-d H:i:sO",
|
132
|
-
YearMonth: "F, Y"
|
133
|
-
},
|
134
|
-
reformatAfterEdit: false
|
135
|
-
},
|
136
|
-
baseLinkUrl: "",
|
137
|
-
showAction: "نمايش",
|
138
|
-
target: "",
|
139
|
-
checkbox: {
|
140
|
-
disabled: true
|
141
|
-
},
|
142
|
-
idName: "id"
|
143
|
-
}
|
144
|
-
});
|
1
|
+
;(function ($) {
|
2
|
+
/**
|
3
|
+
* jqGrid Persian Translation
|
4
|
+
* Dual licensed under the MIT and GPL licenses:
|
5
|
+
* http://www.opensource.org/licenses/mit-license.php
|
6
|
+
* http://www.gnu.org/licenses/gpl.html
|
7
|
+
**/
|
8
|
+
$.jgrid = $.jgrid || {};
|
9
|
+
$.extend($.jgrid,{
|
10
|
+
defaults: {
|
11
|
+
recordtext: "نمابش {0} - {1} از {2}",
|
12
|
+
emptyrecords: "رکوردی یافت نشد",
|
13
|
+
loadtext: "بارگزاري...",
|
14
|
+
pgtext: "صفحه {0} از {1}"
|
15
|
+
},
|
16
|
+
search: {
|
17
|
+
caption: "جستجو...",
|
18
|
+
Find: "يافته ها",
|
19
|
+
Reset: "از نو",
|
20
|
+
odata: [{ oper:'eq', text:"برابر"},{ oper:'ne', text:"نا برابر"},{ oper:'lt', text:"به"},{ oper:'le', text:"کوچکتر"},{ oper:'gt', text:"از"},{ oper:'ge', text:"بزرگتر"},{ oper:'bw', text:"شروع با"},{ oper:'bn', text:"شروع نشود با"},{ oper:'in', text:"نباشد"},{ oper:'ni', text:"عضو این نباشد"},{ oper:'ew', text:"اتمام با"},{ oper:'en', text:"تمام نشود با"},{ oper:'cn', text:"حاوی"},{ oper:'nc', text:"نباشد حاوی"}],
|
21
|
+
groupOps: [{
|
22
|
+
op: "AND",
|
23
|
+
text: "کل"
|
24
|
+
},
|
25
|
+
{
|
26
|
+
op: "OR",
|
27
|
+
text: "مجموع"
|
28
|
+
}]
|
29
|
+
},
|
30
|
+
edit: {
|
31
|
+
addCaption: "اضافه کردن رکورد",
|
32
|
+
editCaption: "ويرايش رکورد",
|
33
|
+
bSubmit: "ثبت",
|
34
|
+
bCancel: "انصراف",
|
35
|
+
bClose: "بستن",
|
36
|
+
saveData: "دیتا تعییر کرد! ذخیره شود؟",
|
37
|
+
bYes: "بله",
|
38
|
+
bNo: "خیر",
|
39
|
+
bExit: "انصراف",
|
40
|
+
msg: {
|
41
|
+
required: "فيلدها بايد ختما پر شوند",
|
42
|
+
number: "لطفا عدد وعتبر وارد کنيد",
|
43
|
+
minValue: "مقدار وارد شده بايد بزرگتر يا مساوي با",
|
44
|
+
maxValue: "مقدار وارد شده بايد کوچکتر يا مساوي",
|
45
|
+
email: "پست الکترونيک وارد شده معتبر نيست",
|
46
|
+
integer: "لطفا يک عدد صحيح وارد کنيد",
|
47
|
+
date: "لطفا يک تاريخ معتبر وارد کنيد",
|
48
|
+
url: "این آدرس صحیح نمی باشد. پیشوند نیاز است ('http://' یا 'https://')",
|
49
|
+
nodefined: " تعریف نشده!",
|
50
|
+
novalue: " مقدار برگشتی اجباری است!",
|
51
|
+
customarray: "تابع شما باید مقدار آرایه داشته باشد!",
|
52
|
+
customfcheck: "برای داشتن متد دلخواه شما باید سطون با چکینگ دلخواه داشته باشید!"
|
53
|
+
}
|
54
|
+
},
|
55
|
+
view: {
|
56
|
+
caption: "نمایش رکورد",
|
57
|
+
bClose: "بستن"
|
58
|
+
},
|
59
|
+
del: {
|
60
|
+
caption: "حذف",
|
61
|
+
msg: "از حذف گزينه هاي انتخاب شده مطمئن هستيد؟",
|
62
|
+
bSubmit: "حذف",
|
63
|
+
bCancel: "ابطال"
|
64
|
+
},
|
65
|
+
nav: {
|
66
|
+
edittext: " ",
|
67
|
+
edittitle: "ويرايش رديف هاي انتخاب شده",
|
68
|
+
addtext: " ",
|
69
|
+
addtitle: "افزودن رديف جديد",
|
70
|
+
deltext: " ",
|
71
|
+
deltitle: "حذف ردبف هاي انتیاب شده",
|
72
|
+
searchtext: " ",
|
73
|
+
searchtitle: "جستجوي رديف",
|
74
|
+
refreshtext: "",
|
75
|
+
refreshtitle: "بازيابي مجدد صفحه",
|
76
|
+
alertcap: "اخطار",
|
77
|
+
alerttext: "لطفا يک رديف انتخاب کنيد",
|
78
|
+
viewtext: "",
|
79
|
+
viewtitle: "نمایش رکورد های انتخاب شده"
|
80
|
+
},
|
81
|
+
col: {
|
82
|
+
caption: "نمايش/عدم نمايش ستون",
|
83
|
+
bSubmit: "ثبت",
|
84
|
+
bCancel: "انصراف"
|
85
|
+
},
|
86
|
+
errors: {
|
87
|
+
errcap: "خطا",
|
88
|
+
nourl: "هيچ آدرسي تنظيم نشده است",
|
89
|
+
norecords: "هيچ رکوردي براي پردازش موجود نيست",
|
90
|
+
model: "طول نام ستون ها محالف ستون هاي مدل مي باشد!"
|
91
|
+
},
|
92
|
+
formatter: {
|
93
|
+
integer: {
|
94
|
+
thousandsSeparator: " ",
|
95
|
+
defaultValue: "0"
|
96
|
+
},
|
97
|
+
number: {
|
98
|
+
decimalSeparator: ".",
|
99
|
+
thousandsSeparator: " ",
|
100
|
+
decimalPlaces: 2,
|
101
|
+
defaultValue: "0.00"
|
102
|
+
},
|
103
|
+
currency: {
|
104
|
+
decimalSeparator: ".",
|
105
|
+
thousandsSeparator: " ",
|
106
|
+
decimalPlaces: 2,
|
107
|
+
prefix: "",
|
108
|
+
suffix: "",
|
109
|
+
defaultValue: "0"
|
110
|
+
},
|
111
|
+
date: {
|
112
|
+
dayNames: ["يک", "دو", "سه", "چهار", "پنج", "جمع", "شنب", "يکشنبه", "دوشنبه", "سه شنبه", "چهارشنبه", "پنجشنبه", "جمعه", "شنبه"],
|
113
|
+
monthNames: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec", "ژانويه", "فوريه", "مارس", "آوريل", "مه", "ژوئن", "ژوئيه", "اوت", "سپتامبر", "اکتبر", "نوامبر", "December"],
|
114
|
+
AmPm: ["ب.ظ", "ب.ظ", "ق.ظ", "ق.ظ"],
|
115
|
+
S: function (b) {
|
116
|
+
return b < 11 || b > 13 ? ["st", "nd", "rd", "th"][Math.min((b - 1) % 10, 3)] : "th"
|
117
|
+
},
|
118
|
+
srcformat: "Y-m-d",
|
119
|
+
newformat: "d/m/Y",
|
120
|
+
parseRe : /[Tt\\\/:_;.,\t\s-]/,
|
121
|
+
masks: {
|
122
|
+
ISO8601Long: "Y-m-d H:i:s",
|
123
|
+
ISO8601Short: "Y-m-d",
|
124
|
+
ShortDate: "n/j/Y",
|
125
|
+
LongDate: "l, F d, Y",
|
126
|
+
FullDateTime: "l, F d, Y g:i:s A",
|
127
|
+
MonthDay: "F d",
|
128
|
+
ShortTime: "g:i A",
|
129
|
+
LongTime: "g:i:s A",
|
130
|
+
SortableDateTime: "Y-m-d\\TH:i:s",
|
131
|
+
UniversalSortableDateTime: "Y-m-d H:i:sO",
|
132
|
+
YearMonth: "F, Y"
|
133
|
+
},
|
134
|
+
reformatAfterEdit: false
|
135
|
+
},
|
136
|
+
baseLinkUrl: "",
|
137
|
+
showAction: "نمايش",
|
138
|
+
target: "",
|
139
|
+
checkbox: {
|
140
|
+
disabled: true
|
141
|
+
},
|
142
|
+
idName: "id"
|
143
|
+
}
|
144
|
+
});
|
145
145
|
})(jQuery);
|