Merge remote-tracking branch 'origin/master' into internationalization
Conflicts: extensions/freebase/module/scripts/dialogs/schema-alignment/schema-alignment-dialog.html main/webapp/modules/core/index.vt main/webapp/modules/core/project.vt main/webapp/modules/core/scripts/project/browsing-engine.js main/webapp/modules/core/scripts/project/history-panel.html
This commit is contained in:
commit
6e90bc41f6
11
.classpath
11
.classpath
@ -13,7 +13,7 @@
|
|||||||
<classpathentry exported="true" kind="lib" path="main/webapp/WEB-INF/lib/arithcode-1.1.jar"/>
|
<classpathentry exported="true" kind="lib" path="main/webapp/WEB-INF/lib/arithcode-1.1.jar"/>
|
||||||
<classpathentry exported="true" kind="lib" path="main/webapp/WEB-INF/lib/butterfly-trunk.jar" sourcepath="main/webapp/WEB-INF/lib-src/butterfly-trunk-sources.jar"/>
|
<classpathentry exported="true" kind="lib" path="main/webapp/WEB-INF/lib/butterfly-trunk.jar" sourcepath="main/webapp/WEB-INF/lib-src/butterfly-trunk-sources.jar"/>
|
||||||
<classpathentry exported="true" kind="lib" path="main/webapp/WEB-INF/lib/clojure-1.4.0.jar"/>
|
<classpathentry exported="true" kind="lib" path="main/webapp/WEB-INF/lib/clojure-1.4.0.jar"/>
|
||||||
<classpathentry exported="true" kind="lib" path="main/webapp/WEB-INF/lib/commons-codec-1.5.jar"/>
|
<classpathentry exported="true" kind="lib" path="main/webapp/WEB-INF/lib/commons-codec-1.6.jar"/>
|
||||||
<classpathentry exported="true" kind="lib" path="main/webapp/WEB-INF/lib/commons-collections-3.2.1.jar"/>
|
<classpathentry exported="true" kind="lib" path="main/webapp/WEB-INF/lib/commons-collections-3.2.1.jar"/>
|
||||||
<classpathentry exported="true" kind="lib" path="main/webapp/WEB-INF/lib/commons-fileupload-1.2.1.jar"/>
|
<classpathentry exported="true" kind="lib" path="main/webapp/WEB-INF/lib/commons-fileupload-1.2.1.jar"/>
|
||||||
<classpathentry exported="true" kind="lib" path="main/webapp/WEB-INF/lib/commons-io-1.4.jar"/>
|
<classpathentry exported="true" kind="lib" path="main/webapp/WEB-INF/lib/commons-io-1.4.jar"/>
|
||||||
@ -42,7 +42,7 @@
|
|||||||
<classpathentry exported="true" kind="lib" path="server/lib/jetty-6.1.22.jar" sourcepath="server/lib-src/jetty-6.1.22-sources.jar"/>
|
<classpathentry exported="true" kind="lib" path="server/lib/jetty-6.1.22.jar" sourcepath="server/lib-src/jetty-6.1.22-sources.jar"/>
|
||||||
<classpathentry exported="true" kind="lib" path="server/lib/jetty-util-6.1.22.jar" sourcepath="server/lib-src/jetty-util-6.1.22-sources.jar"/>
|
<classpathentry exported="true" kind="lib" path="server/lib/jetty-util-6.1.22.jar" sourcepath="server/lib-src/jetty-util-6.1.22-sources.jar"/>
|
||||||
<classpathentry exported="true" kind="lib" path="server/lib/log4j-1.2.15.jar"/>
|
<classpathentry exported="true" kind="lib" path="server/lib/log4j-1.2.15.jar"/>
|
||||||
<classpathentry exported="true" kind="lib" path="server/lib/servlet-api-2.5.jar"/>
|
<classpathentry exported="true" kind="lib" path="server/lib/servlet-api-2.5.jar" sourcepath="server/lib-src/servlet-api-2.5-sources.jar"/>
|
||||||
<classpathentry exported="true" kind="lib" path="server/lib/slf4j-api-1.5.6.jar"/>
|
<classpathentry exported="true" kind="lib" path="server/lib/slf4j-api-1.5.6.jar"/>
|
||||||
<classpathentry exported="true" kind="lib" path="server/lib/slf4j-log4j12-1.5.6.jar"/>
|
<classpathentry exported="true" kind="lib" path="server/lib/slf4j-log4j12-1.5.6.jar"/>
|
||||||
<classpathentry exported="true" kind="lib" path="broker/appengine/WEB-INF/lib/slf4j-jdk14-1.5.6.jar"/>
|
<classpathentry exported="true" kind="lib" path="broker/appengine/WEB-INF/lib/slf4j-jdk14-1.5.6.jar"/>
|
||||||
@ -66,8 +66,8 @@
|
|||||||
<classpathentry exported="true" kind="lib" path="main/webapp/WEB-INF/lib/serializer.jar"/>
|
<classpathentry exported="true" kind="lib" path="main/webapp/WEB-INF/lib/serializer.jar"/>
|
||||||
<classpathentry exported="true" kind="lib" path="main/webapp/WEB-INF/lib/xercesImpl-2.11.jar"/>
|
<classpathentry exported="true" kind="lib" path="main/webapp/WEB-INF/lib/xercesImpl-2.11.jar"/>
|
||||||
<classpathentry exported="true" kind="lib" path="main/webapp/WEB-INF/lib/xml-apis.jar"/>
|
<classpathentry exported="true" kind="lib" path="main/webapp/WEB-INF/lib/xml-apis.jar"/>
|
||||||
<classpathentry exported="true" kind="lib" path="main/webapp/WEB-INF/lib/httpclient-4.1.2.jar" sourcepath="main/webapp/WEB-INF/lib-src/httpclient-4.1.2-sources.jar"/>
|
<classpathentry exported="true" kind="lib" path="main/webapp/WEB-INF/lib/httpclient-4.2.5.jar"/>
|
||||||
<classpathentry exported="true" kind="lib" path="main/webapp/WEB-INF/lib/httpcore-4.1.3.jar" sourcepath="main/webapp/WEB-INF/lib-src/httpcore-4.1.3-sources.jar"/>
|
<classpathentry exported="true" kind="lib" path="main/webapp/WEB-INF/lib/httpcore-4.2.4.jar"/>
|
||||||
<classpathentry exported="true" kind="lib" path="main/webapp/WEB-INF/lib/signpost-commonshttp4-1.2.1.2.jar" sourcepath="main/webapp/WEB-INF/lib-src/signpost-commonshttp4-1.2.1.2-sources.jar"/>
|
<classpathentry exported="true" kind="lib" path="main/webapp/WEB-INF/lib/signpost-commonshttp4-1.2.1.2.jar" sourcepath="main/webapp/WEB-INF/lib-src/signpost-commonshttp4-1.2.1.2-sources.jar"/>
|
||||||
<classpathentry exported="true" kind="lib" path="main/webapp/WEB-INF/lib/signpost-core-1.2.1.2.jar" sourcepath="main/webapp/WEB-INF/lib-src/signpost-core-1.2.1.2-sources.jar"/>
|
<classpathentry exported="true" kind="lib" path="main/webapp/WEB-INF/lib/signpost-core-1.2.1.2.jar" sourcepath="main/webapp/WEB-INF/lib-src/signpost-core-1.2.1.2-sources.jar"/>
|
||||||
<classpathentry exported="true" kind="lib" path="main/webapp/WEB-INF/lib/guava-13.0.jar"/>
|
<classpathentry exported="true" kind="lib" path="main/webapp/WEB-INF/lib/guava-13.0.jar"/>
|
||||||
@ -76,5 +76,8 @@
|
|||||||
<classpathentry exported="true" kind="lib" path="extensions/freebase/module/MOD-INF/lib/google-api-services-freebase-v1-rev25-1.13.2-beta.jar" sourcepath="extensions/freebase/module/MOD-INF/libsrc/google-api-services-freebase-v1-rev25-1.13.2-beta-sources.jar"/>
|
<classpathentry exported="true" kind="lib" path="extensions/freebase/module/MOD-INF/lib/google-api-services-freebase-v1-rev25-1.13.2-beta.jar" sourcepath="extensions/freebase/module/MOD-INF/libsrc/google-api-services-freebase-v1-rev25-1.13.2-beta-sources.jar"/>
|
||||||
<classpathentry exported="true" kind="lib" path="extensions/freebase/module/MOD-INF/lib/google-http-client-jackson-1.13.1-beta.jar"/>
|
<classpathentry exported="true" kind="lib" path="extensions/freebase/module/MOD-INF/lib/google-http-client-jackson-1.13.1-beta.jar"/>
|
||||||
<classpathentry exported="true" kind="lib" path="extensions/freebase/module/MOD-INF/lib/mail.jar"/>
|
<classpathentry exported="true" kind="lib" path="extensions/freebase/module/MOD-INF/lib/mail.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="main/webapp/WEB-INF/lib/commons-logging-1.1.1.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="main/webapp/WEB-INF/lib/fluent-hc-4.2.5.jar"/>
|
||||||
|
<classpathentry exported="true" kind="lib" path="main/webapp/WEB-INF/lib/httpmime-4.2.5.jar"/>
|
||||||
<classpathentry kind="output" path="build"/>
|
<classpathentry kind="output" path="build"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
|
@ -139,7 +139,7 @@
|
|||||||
<copy file="${webapp.src.dir}/log4j.properties" tofile="${webapp.classes.dir}/log4j.properties"/>
|
<copy file="${webapp.src.dir}/log4j.properties" tofile="${webapp.classes.dir}/log4j.properties"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="build_tests" depends="build_webapp, build_server">
|
<target name="build_tests" depends="build">
|
||||||
<mkdir dir="${server.tests.classes.dir}" />
|
<mkdir dir="${server.tests.classes.dir}" />
|
||||||
<javac source="${java_version}" target="${java_version}" encoding="utf-8" srcdir="${server.tests.src.dir}" destdir="${server.tests.classes.dir}" debug="true" includeAntRuntime="no">
|
<javac source="${java_version}" target="${java_version}" encoding="utf-8" srcdir="${server.tests.src.dir}" destdir="${server.tests.classes.dir}" debug="true" includeAntRuntime="no">
|
||||||
<classpath refid="tests.class.path" />
|
<classpath refid="tests.class.path" />
|
||||||
|
@ -57,7 +57,7 @@
|
|||||||
|
|
||||||
<target name="build_java">
|
<target name="build_java">
|
||||||
<mkdir dir="${classes.dir}" />
|
<mkdir dir="${classes.dir}" />
|
||||||
<javac encoding="utf-8" destdir="${classes.dir}" debug="true" includeAntRuntime="no">
|
<javac source="${java_version}" target="${java_version}" encoding="utf-8" destdir="${classes.dir}" debug="true" includeAntRuntime="no">
|
||||||
<src path="${src.dir}"/>
|
<src path="${src.dir}"/>
|
||||||
<classpath refid="class.path" />
|
<classpath refid="class.path" />
|
||||||
</javac>
|
</javac>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<div class="dialog-header" bind="dialogHeader"></div>
|
<div class="dialog-header" bind="dialogHeader"></div>
|
||||||
<div class="dialog-body" bind="dialogBody">
|
<div class="dialog-body" bind="dialogBody">
|
||||||
<p class="body-text" bind="body_text">
|
<p class="body-text" bind="body_text">
|
||||||
<a href="http://code.google.com/p/google-refine/wiki/SchemaAlignment" target="_blank" bind="find_more"></a>
|
<a href="http://github.com/OpenRefine/OpenRefine/wiki/SchemaAlignment" target="_blank" bind="find_more"></a>
|
||||||
</p>
|
</p>
|
||||||
<div id="schema-alignment-tabs" class="refine-tabs">
|
<div id="schema-alignment-tabs" class="refine-tabs">
|
||||||
<ul>
|
<ul>
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
<!--+
|
<!--+
|
||||||
|
|
|
|
||||||
| OpenRefine GData Extension Build File
|
| OpenRefine GData Extension Build File
|
||||||
|
|
|
|
||||||
+-->
|
+-->
|
||||||
|
|
||||||
<project name="grefine-gdata-extension" default="build" basedir=".">
|
<project name="grefine-gdata-extension" default="build" basedir=".">
|
||||||
@ -50,7 +50,7 @@
|
|||||||
|
|
||||||
<target name="build_java">
|
<target name="build_java">
|
||||||
<mkdir dir="${classes.dir}" />
|
<mkdir dir="${classes.dir}" />
|
||||||
<javac encoding="utf-8" destdir="${classes.dir}" debug="true" includeAntRuntime="no">
|
<javac source="${java_version}" target="${java_version}" encoding="utf-8" destdir="${classes.dir}" debug="true" includeAntRuntime="no">
|
||||||
<src path="${src.dir}"/>
|
<src path="${src.dir}"/>
|
||||||
<classpath refid="class.path" />
|
<classpath refid="class.path" />
|
||||||
</javac>
|
</javac>
|
||||||
|
@ -52,7 +52,7 @@
|
|||||||
|
|
||||||
<target name="build_java">
|
<target name="build_java">
|
||||||
<mkdir dir="${classes.dir}" />
|
<mkdir dir="${classes.dir}" />
|
||||||
<javac encoding="utf-8" destdir="${classes.dir}" debug="true" includeAntRuntime="no">
|
<javac source="${java_version}" target="${java_version}" encoding="utf-8" destdir="${classes.dir}" debug="true" includeAntRuntime="no">
|
||||||
<src path="${src.dir}"/>
|
<src path="${src.dir}"/>
|
||||||
<classpath refid="class.path" />
|
<classpath refid="class.path" />
|
||||||
</javac>
|
</javac>
|
||||||
|
@ -53,7 +53,7 @@
|
|||||||
|
|
||||||
<target name="build_java">
|
<target name="build_java">
|
||||||
<mkdir dir="${classes.dir}" />
|
<mkdir dir="${classes.dir}" />
|
||||||
<javac encoding="utf-8" destdir="${classes.dir}" debug="true" includeAntRuntime="no">
|
<javac source="${java_version}" target="${java_version}" encoding="utf-8" destdir="${classes.dir}" debug="true" includeAntRuntime="no">
|
||||||
<src path="${src.dir}"/>
|
<src path="${src.dir}"/>
|
||||||
<classpath refid="class.path" />
|
<classpath refid="class.path" />
|
||||||
</javac>
|
</javac>
|
||||||
|
@ -57,7 +57,7 @@
|
|||||||
|
|
||||||
<target name="build_java">
|
<target name="build_java">
|
||||||
<mkdir dir="${classes.dir}" />
|
<mkdir dir="${classes.dir}" />
|
||||||
<javac encoding="utf-8" destdir="${classes.dir}" debug="true" includeAntRuntime="no">
|
<javac source="${java_version}" target="${java_version}" encoding="utf-8" destdir="${classes.dir}" debug="true" includeAntRuntime="no">
|
||||||
<src path="${src.dir}"/>
|
<src path="${src.dir}"/>
|
||||||
<classpath refid="class.path" />
|
<classpath refid="class.path" />
|
||||||
</javac>
|
</javac>
|
||||||
|
@ -90,6 +90,7 @@ abstract public class ReconConfig implements Jsonizable {
|
|||||||
mode = "core/" + mode;
|
mode = "core/" + mode;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO: This can fail silently if the Freebase extension is not installed.
|
||||||
List<Class<? extends ReconConfig>> classes = s_opNameToClass.get(mode);
|
List<Class<? extends ReconConfig>> classes = s_opNameToClass.get(mode);
|
||||||
if (classes != null && classes.size() > 0) {
|
if (classes != null && classes.size() > 0) {
|
||||||
Class<? extends ReconConfig> klass = classes.get(classes.size() - 1);
|
Class<? extends ReconConfig> klass = classes.get(classes.size() - 1);
|
||||||
|
@ -71,8 +71,8 @@ public class StringCriterion extends Criterion {
|
|||||||
return new KeyMaker() {
|
return new KeyMaker() {
|
||||||
@Override
|
@Override
|
||||||
protected Object makeKey(Object value) {
|
protected Object makeKey(Object value) {
|
||||||
return (ExpressionUtils.isNonBlankData(value) && !(value instanceof String)) ?
|
return collator.getCollationKey((ExpressionUtils.isNonBlankData(value)
|
||||||
collator.getCollationKey(value.toString()) : value;
|
&& !(value instanceof String)) ? value.toString() : (String) value);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -48,12 +48,18 @@ public class Parser {
|
|||||||
int start = 0, current = 0;
|
int start = 0, current = 0;
|
||||||
while (current < s.length() - 1) {
|
while (current < s.length() - 1) {
|
||||||
char c = s.charAt(current);
|
char c = s.charAt(current);
|
||||||
|
char c2 = s.charAt(current + 1);
|
||||||
if (c == '\\') {
|
if (c == '\\') {
|
||||||
current += 2;
|
if (c2 == '\\' || c2 == '{' || c2 == '$') {
|
||||||
|
fragments.add(new StaticFragment(s.substring(start, current).concat(Character.toString(c2))));
|
||||||
|
start = current += 2;
|
||||||
|
} else {
|
||||||
|
// Invalid escape - just leave it in the template
|
||||||
|
current += 1;
|
||||||
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
char c2 = s.charAt(current + 1);
|
|
||||||
if (c == '$' && c2 == '{') {
|
if (c == '$' && c2 == '{') {
|
||||||
int closeBrace = s.indexOf('}', current + 2);
|
int closeBrace = s.indexOf('}', current + 2);
|
||||||
if (closeBrace > current + 1) {
|
if (closeBrace > current + 1) {
|
||||||
|
Binary file not shown.
BIN
main/webapp/WEB-INF/lib/commons-codec-1.6.jar
Normal file
BIN
main/webapp/WEB-INF/lib/commons-codec-1.6.jar
Normal file
Binary file not shown.
BIN
main/webapp/WEB-INF/lib/commons-logging-1.1.1.jar
Normal file
BIN
main/webapp/WEB-INF/lib/commons-logging-1.1.1.jar
Normal file
Binary file not shown.
BIN
main/webapp/WEB-INF/lib/fluent-hc-4.2.5.jar
Normal file
BIN
main/webapp/WEB-INF/lib/fluent-hc-4.2.5.jar
Normal file
Binary file not shown.
Binary file not shown.
BIN
main/webapp/WEB-INF/lib/httpclient-4.2.5.jar
Normal file
BIN
main/webapp/WEB-INF/lib/httpclient-4.2.5.jar
Normal file
Binary file not shown.
Binary file not shown.
BIN
main/webapp/WEB-INF/lib/httpcore-4.2.4.jar
Normal file
BIN
main/webapp/WEB-INF/lib/httpcore-4.2.4.jar
Normal file
Binary file not shown.
BIN
main/webapp/WEB-INF/lib/httpmime-4.2.5.jar
Normal file
BIN
main/webapp/WEB-INF/lib/httpmime-4.2.5.jar
Normal file
Binary file not shown.
@ -58,7 +58,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
<div id="openrefine-version"></div>
|
<div id="openrefine-version"></div>
|
||||||
</div>
|
</div>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="http://code.google.com/p/google-refine/wiki/DocumentationForUsers" id="or-index-help"></a></li>
|
<li><a href="http://github.com/OpenRefine/OpenRefine/wiki/DocumentationForUsers" id="or-index-help"></a></li>
|
||||||
<li><a href="about.html" id="or-index-about"></a></li>
|
<li><a href="about.html" id="or-index-about"></a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
@ -53,7 +53,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
<div id="project-controls">
|
<div id="project-controls">
|
||||||
<a href="./" class="button" target="_blank"><span id="or-proj-open"></span></a>
|
<a href="./" class="button" target="_blank"><span id="or-proj-open"></span></a>
|
||||||
<a class="button" bind="exportButton" id="export-button" href="#export"><span class="button-menu" id="or-proj-export"></span></a>
|
<a class="button" bind="exportButton" id="export-button" href="#export"><span class="button-menu" id="or-proj-export"></span></a>
|
||||||
<a href="http://code.google.com/p/google-refine/wiki/DocumentationForUsers" target="_blank" class="button"><span id="or-proj-help"></span></a>
|
<a href="http://github.com/OpenRefine/OpenRefine/wiki/DocumentationForUsers" target="_blank" class="button"><span id="or-proj-help"></span></a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -98,7 +98,7 @@ BrowsingEngine.prototype._initializeUI = function() {
|
|||||||
'<div class="browsing-panel-help" bind="help">' +
|
'<div class="browsing-panel-help" bind="help">' +
|
||||||
'<h1>'+$.i18n._('core-project')["use-facets"]+'</h1>' +
|
'<h1>'+$.i18n._('core-project')["use-facets"]+'</h1>' +
|
||||||
'<p>'+$.i18n._('core-project')["use-to-select"]+'</p>' +
|
'<p>'+$.i18n._('core-project')["use-to-select"]+'</p>' +
|
||||||
'<p>'+$.i18n._('core-project')["not-sure"]+'<br /><a href="http://code.google.com/p/google-refine/wiki/Screencasts" target="_blank"><b>'+$.i18n._('core-project')["watch-cast"]+'</b></a></p>' +
|
'<p>'+$.i18n._('core-project')["not-sure"]+'<br /><a href="http://github.com/OpenRefine/OpenRefine/wiki/Screencasts" target="_blank"><b>'+$.i18n._('core-project')["watch-cast"]+'</b></a></p>' +
|
||||||
'</div>' +
|
'</div>' +
|
||||||
'<div class="browsing-panel-header" bind="header">' +
|
'<div class="browsing-panel-header" bind="header">' +
|
||||||
'<div class="browsing-panel-indicator" bind="indicator">' +
|
'<div class="browsing-panel-indicator" bind="indicator">' +
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<div class="history-panel-help" bind="helpDiv">
|
<div class="history-panel-help" bind="helpDiv">
|
||||||
<h1 bind="or_proj_undo"></h1>
|
<h1 bind="or_proj_undo"></h1>
|
||||||
<p bind="or_proj_mistakes"></p>
|
<p bind="or_proj_mistakes"></p>
|
||||||
<p><a href="http://code.google.com/p/google-refine/wiki/History" target="_blank"><b><span bind="or_proj_learnMore"></span></b></a></p>
|
<p><a href="http://github.com/OpenRefine/OpenRefine/wiki/History" target="_blank"><b><span bind="or_proj_learnMore"></span></b></a></p>
|
||||||
</div>
|
</div>
|
||||||
<div class="history-panel-controls" bind="controlsDiv">
|
<div class="history-panel-controls" bind="controlsDiv">
|
||||||
<a class="button button-pill-left" href="javascript:{}" bind="extractLink"></a><a class="button button-pill-right" href="javascript:{}" bind="applyLink"></a>
|
<a class="button button-pill-left" href="javascript:{}" bind="extractLink"></a><a class="button button-pill-right" href="javascript:{}" bind="applyLink"></a>
|
||||||
|
@ -78,15 +78,6 @@ DataTableColumnHeaderUI.extendMenu(function(column, columnHeaderUI, menu) {
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
var o = DataTableView.sampleVisibleRows(column);
|
|
||||||
var previewWidget = new ExpressionPreviewDialog.Widget(
|
|
||||||
elmts,
|
|
||||||
column.cellIndex,
|
|
||||||
o.rowIndices,
|
|
||||||
o.values,
|
|
||||||
null
|
|
||||||
);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
var doAddColumnByFetchingURLs = function() {
|
var doAddColumnByFetchingURLs = function() {
|
||||||
@ -133,15 +124,6 @@ DataTableColumnHeaderUI.extendMenu(function(column, columnHeaderUI, menu) {
|
|||||||
);
|
);
|
||||||
dismiss();
|
dismiss();
|
||||||
});
|
});
|
||||||
|
|
||||||
var o = DataTableView.sampleVisibleRows(column);
|
|
||||||
var previewWidget = new ExpressionPreviewDialog.Widget(
|
|
||||||
elmts,
|
|
||||||
column.cellIndex,
|
|
||||||
o.rowIndices,
|
|
||||||
o.values,
|
|
||||||
null
|
|
||||||
);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
var doRemoveColumn = function() {
|
var doRemoveColumn = function() {
|
||||||
@ -183,15 +165,18 @@ DataTableColumnHeaderUI.extendMenu(function(column, columnHeaderUI, menu) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
var doMoveColumnBy = function(change) {
|
var doMoveColumnBy = function(change) {
|
||||||
Refine.postCoreProcess(
|
var newidx = Refine.columnNameToColumnIndex(column.name) + change;
|
||||||
"move-column",
|
if (newidx > 0 && newidx < Refine.columnNameToColumnIndex(column.name)) {
|
||||||
{
|
Refine.postCoreProcess(
|
||||||
columnName: column.name,
|
"move-column",
|
||||||
index: Refine.columnNameToColumnIndex(column.name) + change
|
{
|
||||||
},
|
columnName: column.name,
|
||||||
null,
|
index: newidx
|
||||||
{ modelsChanged: true }
|
},
|
||||||
);
|
null,
|
||||||
|
{ modelsChanged: true }
|
||||||
|
);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
var doSplitColumn = function() {
|
var doSplitColumn = function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user