Hello community,
here is the log from the commit of package perl-App-MFILE-WWW for
openSUSE:Factory checked in at 2016-11-18 22:04:04
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-App-MFILE-WWW (Old)
and /work/SRC/openSUSE:Factory/.perl-App-MFILE-WWW.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-App-MFILE-WWW"
Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-App-MFILE-WWW/perl-App-MFILE-WWW.changes
2016-11-10 13:28:00.000000000 +0100
+++
/work/SRC/openSUSE:Factory/.perl-App-MFILE-WWW.new/perl-App-MFILE-WWW.changes
2016-11-18 22:04:05.000000000 +0100
@@ -1,0 +2,13 @@
+Thu Nov 10 06:02:49 UTC 2016 - [email protected]
+
+- updated to 0.152
+ see /usr/share/doc/packages/perl-App-MFILE-WWW/Changes
+
+
+ 0.152 2016-11-05 21:18 CET
+ - core: prevent miniMenu entries from being undefined in start.js
+ - core: library function for displaying error messages
+ - core: improve display of empty table/rowselect in html.js
+ - core: display drowselect navigation only if rows > 1
+
+-------------------------------------------------------------------
Old:
----
App-MFILE-WWW-0.151.tar.gz
New:
----
App-MFILE-WWW-0.152.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-App-MFILE-WWW.spec ++++++
--- /var/tmp/diff_new_pack.7Tb4E3/_old 2016-11-18 22:04:06.000000000 +0100
+++ /var/tmp/diff_new_pack.7Tb4E3/_new 2016-11-18 22:04:06.000000000 +0100
@@ -17,7 +17,7 @@
Name: perl-App-MFILE-WWW
-Version: 0.151
+Version: 0.152
Release: 0
%define cpan_name App-MFILE-WWW
Summary: Web UI development toolkit with prototype demo app
++++++ App-MFILE-WWW-0.151.tar.gz -> App-MFILE-WWW-0.152.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/App-MFILE-WWW-0.151/Changes
new/App-MFILE-WWW-0.152/Changes
--- old/App-MFILE-WWW-0.151/Changes 2016-11-04 22:02:52.000000000 +0100
+++ new/App-MFILE-WWW-0.152/Changes 2016-11-05 21:18:27.000000000 +0100
@@ -914,3 +914,9 @@
- demo: enable editing in dbrowser/drowselect demos
- core: refactor to eliminate code duplication (and fix a bug)
+0.152 2016-11-05 21:18 CET
+- core: prevent miniMenu entries from being undefined in start.js
+- core: library function for displaying error messages
+- core: improve display of empty table/rowselect in html.js
+- core: display drowselect navigation only if rows > 1
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/App-MFILE-WWW-0.151/META.json
new/App-MFILE-WWW-0.152/META.json
--- old/App-MFILE-WWW-0.151/META.json 2016-11-04 22:02:52.000000000 +0100
+++ new/App-MFILE-WWW-0.152/META.json 2016-11-05 21:18:27.000000000 +0100
@@ -58,7 +58,7 @@
"provides" : {
"App::MFILE::WWW" : {
"file" : "lib/App/MFILE/WWW.pm",
- "version" : "0.151"
+ "version" : "0.152"
},
"App::MFILE::WWW::Dispatch" : {
"file" : "lib/App/MFILE/WWW/Dispatch.pm"
@@ -73,6 +73,6 @@
"http://opensource.org/licenses/bsd-license.php"
]
},
- "version" : "0.151",
+ "version" : "0.152",
"x_serialization_backend" : "JSON::PP version 2.27203"
}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/App-MFILE-WWW-0.151/META.yml
new/App-MFILE-WWW-0.152/META.yml
--- old/App-MFILE-WWW-0.151/META.yml 2016-11-04 22:02:52.000000000 +0100
+++ new/App-MFILE-WWW-0.152/META.yml 2016-11-05 21:18:27.000000000 +0100
@@ -23,7 +23,7 @@
provides:
App::MFILE::WWW:
file: lib/App/MFILE/WWW.pm
- version: '0.151'
+ version: '0.152'
App::MFILE::WWW::Dispatch:
file: lib/App/MFILE/WWW/Dispatch.pm
App::MFILE::WWW::Resource:
@@ -50,5 +50,5 @@
perl: '5.012'
resources:
license: http://opensource.org/licenses/bsd-license.php
-version: '0.151'
+version: '0.152'
x_serialization_backend: 'CPAN::Meta::YAML version 0.012'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/App-MFILE-WWW-0.151/lib/App/MFILE/WWW.pm
new/App-MFILE-WWW-0.152/lib/App/MFILE/WWW.pm
--- old/App-MFILE-WWW-0.151/lib/App/MFILE/WWW.pm 2016-11-04
22:02:52.000000000 +0100
+++ new/App-MFILE-WWW-0.152/lib/App/MFILE/WWW.pm 2016-11-05
21:18:27.000000000 +0100
@@ -58,11 +58,11 @@
=head1 VERSION
-Version 0.151
+Version 0.152
=cut
-our $VERSION = '0.151';
+our $VERSION = '0.152';
our @EXPORT_OK = ( '$VERSION' );
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/App-MFILE-WWW-0.151/share/js/core/html.js
new/App-MFILE-WWW-0.152/share/js/core/html.js
--- old/App-MFILE-WWW-0.151/share/js/core/html.js 2016-11-04
22:02:52.000000000 +0100
+++ new/App-MFILE-WWW-0.152/share/js/core/html.js 2016-11-05
21:18:27.000000000 +0100
@@ -231,6 +231,9 @@
r += '<br>';
// display table rows
+ if (set.length === 0) {
+ r += '<br>(empty table, nothing to display)<br><br><br>';
+ }
if (set.length > 0) {
for (row = 0; row < set.length; row += 1) {
r += '<span id="row' + row + '">';
@@ -254,7 +257,7 @@
}
// Navigation menu (drowselect only)
- if (targetType === 'drowselect') {
+ if (targetType === 'drowselect' && set.length > 1) {
r += 'Navigation: ';
r += '<span id="navBack">[\u2190] Previous </span>';
r += '<span id="navForward">[\u2192] Next </span>';
@@ -396,6 +399,7 @@
// READ-ONLY entries first
len = dfo.entriesRead ? dfo.entriesRead.length : 0;
+ console.log("Processing " + len + "read-only dform entries");
for (i = 0; i < len; i += 1) {
entry = dfo.entriesRead[i];
if (lib.privCheck(entry.aclProfileRead)) {
@@ -409,6 +413,7 @@
// READ-WRITE entries second
len = dfo.entriesWrite ? dfo.entriesWrite.length : 0;
+ console.log("Processing " + len + "read-write dform entries");
for (i = 0; i < len; i += 1) {
entry = dfo.entriesWrite[i];
if (lib.privCheck(entry.aclProfileWrite)) {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/App-MFILE-WWW-0.151/share/js/core/lib.js
new/App-MFILE-WWW-0.152/share/js/core/lib.js
--- old/App-MFILE-WWW-0.151/share/js/core/lib.js 2016-11-04
22:02:52.000000000 +0100
+++ new/App-MFILE-WWW-0.152/share/js/core/lib.js 2016-11-05
21:18:27.000000000 +0100
@@ -216,7 +216,15 @@
// dbrowser, drowselect states
dbrowserState: dbrowserState,
- drowselectState: drowselectState
+ drowselectState: drowselectState,
+
+ // display error message
+ displayError: function (msg) {
+ console.log(msg);
+ $("#result").html(msg);
+ $('input[name="sel"]').val('');
+ $('input[name="entry0"]').focus();
+ }
};
});
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/App-MFILE-WWW-0.151/share/js/core/start.js
new/App-MFILE-WWW-0.152/share/js/core/start.js
--- old/App-MFILE-WWW-0.151/share/js/core/start.js 2016-11-04
22:02:52.000000000 +0100
+++ new/App-MFILE-WWW-0.152/share/js/core/start.js 2016-11-05
21:18:27.000000000 +0100
@@ -151,18 +151,23 @@
selection,
entry,
item,
- wlen;
-
+ wlen,
+ entries = tgt.miniMenu.entries;
+
// if miniMenu has zero or one entries, 'Back' is the only option
- len = tgt.miniMenu.entries.length;
- if (len === 0) {
+ console.log("entries", entries);
+ if (entries === null || entries === undefined || entries.length
=== 0) {
console.log("Setting sel to 'X' by default because miniMenu
has no entries");
sel = 'X';
- } else if (sel === '') {
- // user hit ENTER ambiguously
+ len = 0;
+ } else {
+ len = entries.length;
+ }
+ if (len > 0 && sel === '') {
+ console.log("User hit ENTER ambiguously; doing nothing");
return;
}
-
+
if (obj !== undefined) {
newObj = $.extend({}, obj);