marty 0.5.41 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +3 -2
- data/app/components/marty/api_auth_view.rb +5 -8
- data/app/components/marty/auth_app.rb +8 -9
- data/app/components/marty/auth_app/{javascripts → client}/auth_app.js +4 -4
- data/app/components/marty/config_view.rb +7 -9
- data/app/components/marty/extras/misc.rb +14 -1
- data/app/components/marty/form.rb +1 -1
- data/app/components/marty/grid.rb +27 -14
- data/app/components/marty/grid_append_only.rb +3 -5
- data/app/components/marty/import_type_view.rb +8 -11
- data/app/components/marty/live_search_grid_panel.rb +3 -3
- data/app/components/marty/main_auth_app.rb +17 -19
- data/app/components/marty/mcfly_grid_panel.rb +13 -15
- data/app/components/marty/new_posting_form.rb +5 -5
- data/app/components/marty/new_posting_window.rb +1 -1
- data/app/components/marty/panel.rb +2 -2
- data/app/components/marty/posting_grid.rb +19 -28
- data/app/components/marty/posting_window.rb +6 -7
- data/app/components/marty/promise_view.rb +23 -24
- data/app/components/marty/promise_view/{stylesheets → client}/promise_view.css +0 -0
- data/app/components/marty/report_form.rb +11 -10
- data/app/components/marty/report_select.rb +17 -15
- data/app/components/marty/reporting.rb +2 -2
- data/app/components/marty/script_form.rb +34 -38
- data/app/components/marty/script_form/{javascripts → client}/Ext.ux.form.field.CodeMirror.js +0 -0
- data/app/components/marty/script_form/{stylesheets → client}/codemirror.css +0 -0
- data/app/components/marty/script_form/{javascripts → client}/codemirror.js +0 -0
- data/app/components/marty/script_form/{stylesheets → client}/delorean.css +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/clike/clike.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/clike/index.html +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/clike/scala.html +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/clojure/clojure.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/clojure/index.html +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/coffeescript/LICENSE +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/coffeescript/coffeescript.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/coffeescript/index.html +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/commonlisp/commonlisp.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/commonlisp/index.html +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/css/css.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/css/index.html +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/css/test.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/delorean/delorean.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/diff/diff.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/diff/index.html +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/ecl/ecl.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/ecl/index.html +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/erlang/erlang.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/erlang/index.html +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/gfm/gfm.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/gfm/index.html +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/go/go.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/go/index.html +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/groovy/groovy.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/groovy/index.html +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/haskell/haskell.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/haskell/index.html +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/haxe/haxe.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/haxe/index.html +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/htmlembedded/htmlembedded.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/htmlembedded/index.html +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/htmlmixed/htmlmixed.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/htmlmixed/index.html +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/javascript/index.html +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/javascript/javascript.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/jinja2/index.html +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/jinja2/jinja2.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/less/index.html +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/less/less.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/lua/index.html +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/lua/lua.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/markdown/index.html +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/markdown/markdown.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/markdown/test.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/mysql/index.html +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/mysql/mysql.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/ntriples/index.html +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/ntriples/ntriples.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/ocaml/index.html +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/ocaml/ocaml.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/pascal/LICENSE +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/pascal/index.html +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/pascal/pascal.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/perl/LICENSE +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/perl/index.html +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/perl/perl.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/php/index.html +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/php/php.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/pig/index.html +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/pig/pig.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/plsql/index.html +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/plsql/plsql.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/properties/index.html +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/properties/properties.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/python/LICENSE.txt +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/python/index.html +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/python/python.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/r/LICENSE +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/r/index.html +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/r/r.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/rpm/changes/changes.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/rpm/changes/index.html +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/rpm/spec/index.html +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/rpm/spec/spec.css +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/rpm/spec/spec.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/rst/index.html +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/rst/rst.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/ruby/LICENSE +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/ruby/index.html +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/ruby/ruby.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/rust/index.html +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/rust/rust.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/scheme/index.html +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/scheme/scheme.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/shell/index.html +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/shell/shell.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/sieve/LICENSE +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/sieve/index.html +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/sieve/sieve.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/smalltalk/index.html +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/smalltalk/smalltalk.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/smarty/index.html +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/smarty/smarty.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/sparql/index.html +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/sparql/sparql.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/stex/index.html +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/stex/stex.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/stex/test.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/tiddlywiki/index.html +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/tiddlywiki/tiddlywiki.css +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/tiddlywiki/tiddlywiki.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/tiki/index.html +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/tiki/tiki.css +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/tiki/tiki.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/vb/LICENSE.txt +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/vb/index.html +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/vb/vb.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/vbscript/index.html +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/vbscript/vbscript.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/velocity/index.html +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/velocity/velocity.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/verilog/index.html +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/verilog/verilog.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/xml/index.html +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/xml/xml.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/xquery/LICENSE +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/xquery/index.html +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/xquery/test/index.html +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/xquery/test/testBase.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/xquery/test/testEmptySequenceKeyword.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/xquery/test/testMultiAttr.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/xquery/test/testNamespaces.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/xquery/test/testProcessingInstructions.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/xquery/test/testQuotes.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/xquery/xquery.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/yaml/index.html +0 -0
- data/app/components/marty/script_form/{javascripts → client}/mode/yaml/yaml.js +0 -0
- data/app/components/marty/script_form/{stylesheets → client}/theme/ambiance.css +0 -0
- data/app/components/marty/script_form/{stylesheets → client}/theme/blackboard.css +0 -0
- data/app/components/marty/script_form/{stylesheets → client}/theme/cobalt.css +0 -0
- data/app/components/marty/script_form/{stylesheets → client}/theme/eclipse.css +0 -0
- data/app/components/marty/script_form/{stylesheets → client}/theme/elegant.css +0 -0
- data/app/components/marty/script_form/{stylesheets → client}/theme/erlang-dark.css +0 -0
- data/app/components/marty/script_form/{stylesheets → client}/theme/lesser-dark.css +0 -0
- data/app/components/marty/script_form/{stylesheets → client}/theme/monokai.css +0 -0
- data/app/components/marty/script_form/{stylesheets → client}/theme/neat.css +0 -0
- data/app/components/marty/script_form/{stylesheets → client}/theme/night.css +0 -0
- data/app/components/marty/script_form/{stylesheets → client}/theme/rubyblue.css +0 -0
- data/app/components/marty/script_form/{stylesheets → client}/theme/vibrant-ink.css +0 -0
- data/app/components/marty/script_form/{stylesheets → client}/theme/xq-dark.css +0 -0
- data/app/components/marty/script_form/{javascripts → client}/util/closetag.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/util/dialog.css +0 -0
- data/app/components/marty/script_form/{javascripts → client}/util/dialog.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/util/foldcode.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/util/formatting.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/util/javascript-hint.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/util/loadmode.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/util/match-highlighter.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/util/multiplex.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/util/overlay.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/util/pig-hint.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/util/runmode-standalone.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/util/runmode.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/util/search.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/util/searchcursor.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/util/simple-hint.css +0 -0
- data/app/components/marty/script_form/{javascripts → client}/util/simple-hint.js +0 -0
- data/app/components/marty/script_form/{javascripts → client}/util/xml-hint.js +0 -0
- data/app/components/marty/script_grid.rb +24 -32
- data/app/components/marty/script_tester.rb +11 -11
- data/app/components/marty/scripting.rb +12 -12
- data/app/components/marty/simple_app.rb +2 -2
- data/app/components/marty/simple_app/{javascripts → client}/simple_app.js +0 -0
- data/app/components/marty/simple_app/{javascripts → client}/statusbar_ext.js +0 -0
- data/app/components/marty/tag_grid.rb +15 -21
- data/app/components/marty/user_view.rb +41 -57
- data/lib/marty/monkey.rb +1 -1
- data/lib/marty/version.rb +1 -1
- data/marty.gemspec +3 -2
- data/spec/dummy/app/assets/{stylesheets → client}/application.css +0 -0
- data/spec/dummy/app/assets/client/application.js +15 -0
- data/spec/features/scripting_spec.rb +17 -0
- data/spec/features/user_view_spec.rb +15 -15
- data/spec/spec_helper.rb +9 -0
- metadata +189 -174
@@ -7,12 +7,12 @@ class Marty::Reporting < Netzke::Base
|
|
7
7
|
]
|
8
8
|
end
|
9
9
|
|
10
|
-
|
10
|
+
client_class do |c|
|
11
11
|
c.header = false
|
12
12
|
c.layout = :border
|
13
13
|
c.defaults = {body_style: 'padding:0px'}
|
14
14
|
|
15
|
-
c.select_report = <<-JS
|
15
|
+
c.select_report = l(<<-JS)
|
16
16
|
function() {
|
17
17
|
// this.netzkeGetComponent('report_form').netzkeLoad({});
|
18
18
|
// FIXME: NetzkeReload() doesn't work when performed on
|
@@ -1,18 +1,18 @@
|
|
1
1
|
class Marty::ScriptForm < Marty::Form
|
2
2
|
DASH = 0x2012.chr('utf-8')
|
3
3
|
|
4
|
-
|
4
|
+
client_styles do |c|
|
5
5
|
c.require :codemirror
|
6
6
|
c.require :delorean
|
7
7
|
end
|
8
8
|
|
9
|
-
|
9
|
+
client_class do |c|
|
10
10
|
c.require :"Ext.ux.form.field.CodeMirror"
|
11
11
|
c.require :codemirror
|
12
12
|
c.require File.dirname(__FILE__) +
|
13
|
-
"/script_form/
|
13
|
+
"/script_form/client/mode/delorean/delorean.js"
|
14
14
|
|
15
|
-
c.set_action_modes = <<-JS
|
15
|
+
c.set_action_modes = l(<<-JS)
|
16
16
|
function(a) {
|
17
17
|
this.actions.apply.setDisabled(!a["save"]);
|
18
18
|
// style input field text based on whether it is editable
|
@@ -21,13 +21,13 @@ class Marty::ScriptForm < Marty::Form
|
|
21
21
|
}
|
22
22
|
JS
|
23
23
|
|
24
|
-
c.get_script_id = <<-JS
|
24
|
+
c.get_script_id = l(<<-JS)
|
25
25
|
function() {
|
26
26
|
return this.getForm().findField('id').getValue();
|
27
27
|
}
|
28
28
|
JS
|
29
29
|
|
30
|
-
c.get_script_body = <<-JS
|
30
|
+
c.get_script_body = l(<<-JS)
|
31
31
|
function() {
|
32
32
|
return this.getForm().findField('body').getValue();
|
33
33
|
}
|
@@ -35,7 +35,7 @@ class Marty::ScriptForm < Marty::Form
|
|
35
35
|
|
36
36
|
# Sets an editor line class (unset any previous line class). For
|
37
37
|
# now, only one line is classed at a time.
|
38
|
-
c.set_line_error = <<-JS
|
38
|
+
c.set_line_error = l(<<-JS)
|
39
39
|
function(line) {
|
40
40
|
line -= 1;
|
41
41
|
var editor = this.getForm().findField('body').editor;
|
@@ -51,7 +51,7 @@ class Marty::ScriptForm < Marty::Form
|
|
51
51
|
|
52
52
|
######################################################################
|
53
53
|
|
54
|
-
c.refresh_parent = <<-JS
|
54
|
+
c.refresh_parent = l(<<-JS)
|
55
55
|
function(script_name) {
|
56
56
|
this.netzkeGetParentComponent().scriptRefresh(script_name);
|
57
57
|
}
|
@@ -60,7 +60,7 @@ class Marty::ScriptForm < Marty::Form
|
|
60
60
|
######################################################################
|
61
61
|
|
62
62
|
# FIXME: no longer works -- see related FIXME below.
|
63
|
-
c.on_print = <<-JS
|
63
|
+
c.on_print = l(<<-JS)
|
64
64
|
function() {
|
65
65
|
window.open(
|
66
66
|
"/marty/components/#{self.name}.html?script_id=" + this.getScriptId(),
|
@@ -73,9 +73,9 @@ class Marty::ScriptForm < Marty::Form
|
|
73
73
|
|
74
74
|
######################################################################
|
75
75
|
|
76
|
-
endpoint :netzke_load do |params
|
76
|
+
endpoint :netzke_load do |params|
|
77
77
|
|
78
|
-
return
|
78
|
+
return client.netzke_notify("Permission Denied") unless
|
79
79
|
self.class.has_any_perm?
|
80
80
|
|
81
81
|
script_name = params[:script_name]
|
@@ -94,15 +94,15 @@ class Marty::ScriptForm < Marty::Form
|
|
94
94
|
"meta" => {},
|
95
95
|
}
|
96
96
|
|
97
|
-
|
98
|
-
|
99
|
-
|
97
|
+
client.netzke_set_form_values(js_data)
|
98
|
+
client.set_title title
|
99
|
+
client.netzke_set_readonly_mode !can_save?(script)
|
100
100
|
|
101
101
|
modes = {
|
102
102
|
save: can_save?(script),
|
103
103
|
}
|
104
104
|
|
105
|
-
|
105
|
+
client.set_action_modes(modes)
|
106
106
|
end
|
107
107
|
|
108
108
|
def can_save?(script)
|
@@ -118,9 +118,9 @@ class Marty::ScriptForm < Marty::Form
|
|
118
118
|
a.disabled = true
|
119
119
|
end
|
120
120
|
|
121
|
-
endpoint :
|
121
|
+
endpoint :submit do |params|
|
122
122
|
|
123
|
-
return
|
123
|
+
return client.netzke_notify("Permission Denied") unless
|
124
124
|
self.class.has_any_perm?
|
125
125
|
|
126
126
|
# copied from corresponding method in form_panel.services
|
@@ -132,19 +132,19 @@ class Marty::ScriptForm < Marty::Form
|
|
132
132
|
@record = script = Marty::Script.find_by_id(data["id"])
|
133
133
|
|
134
134
|
unless script
|
135
|
-
|
135
|
+
client.netzke_notify "no record"
|
136
136
|
return
|
137
137
|
end
|
138
138
|
|
139
139
|
if script.body == data["body"]
|
140
|
-
|
140
|
+
client.netzke_notify "no save needed"
|
141
141
|
# clear the error line if any
|
142
|
-
|
142
|
+
client.set_line_error -1
|
143
143
|
return
|
144
144
|
end
|
145
145
|
|
146
146
|
unless can_save?(script)
|
147
|
-
|
147
|
+
client.netzke_notify "Permission denied"
|
148
148
|
return
|
149
149
|
end
|
150
150
|
|
@@ -152,27 +152,23 @@ class Marty::ScriptForm < Marty::Form
|
|
152
152
|
dev = Marty::Tag.find_by_name("DEV")
|
153
153
|
Marty::ScriptSet.new(dev).parse_check(script.name, data["body"])
|
154
154
|
rescue Delorean::ParseError => exc
|
155
|
-
|
156
|
-
|
157
|
-
|
155
|
+
client.netzke_notify exc.message
|
156
|
+
client.netzke_apply_form_errors({})
|
157
|
+
client.set_line_error(exc.line)
|
158
158
|
return
|
159
159
|
end
|
160
160
|
|
161
161
|
script.body = data["body"]
|
162
162
|
|
163
163
|
if script.save
|
164
|
-
|
165
|
-
|
166
|
-
|
164
|
+
client.netzke_set_form_values(js_record_data)
|
165
|
+
client.netzke_set_result(true)
|
166
|
+
client.refresh_parent(script.name)
|
167
167
|
return
|
168
168
|
end
|
169
169
|
|
170
|
-
|
171
|
-
|
172
|
-
end
|
173
|
-
|
174
|
-
this.netzke_feedback @flash
|
175
|
-
this.apply_form_errors(build_form_errors(record))
|
170
|
+
client.netzke_notify(model_adapter.errors_array(script).join("\n"))
|
171
|
+
client.netzke_apply_form_errors(build_form_errors(record))
|
176
172
|
end
|
177
173
|
|
178
174
|
######################################################################
|
@@ -186,11 +182,11 @@ class Marty::ScriptForm < Marty::Form
|
|
186
182
|
|
187
183
|
######################################################################
|
188
184
|
|
189
|
-
def
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
185
|
+
def default_bbar
|
186
|
+
[
|
187
|
+
:apply,
|
188
|
+
:print,
|
189
|
+
]
|
194
190
|
end
|
195
191
|
|
196
192
|
######################################################################
|
data/app/components/marty/script_form/{javascripts → client}/Ext.ux.form.field.CodeMirror.js
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/app/components/marty/script_form/{javascripts → client}/mode/coffeescript/coffeescript.js
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/app/components/marty/script_form/{javascripts → client}/mode/htmlembedded/htmlembedded.js
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|