pixl-xyapp 2.1.23 → 2.1.25
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.
- package/css/base.css +3 -0
- package/js/base.js +10 -1
- package/js/select.js +1 -1
- package/package.json +1 -1
package/css/base.css
CHANGED
package/js/base.js
CHANGED
|
@@ -298,6 +298,12 @@ var app = {
|
|
|
298
298
|
// send HTTP GET to API endpoint
|
|
299
299
|
// Debug.trace('api', "Sending API request: " + url );
|
|
300
300
|
|
|
301
|
+
// add csrf token if we have one
|
|
302
|
+
if (app.csrf_token && (opts.method == 'POST')) {
|
|
303
|
+
if (!opts.headers) opts.headers = {};
|
|
304
|
+
opts.headers['X-CSRF-Token'] = app.csrf_token;
|
|
305
|
+
}
|
|
306
|
+
|
|
301
307
|
// default 10 sec timeout
|
|
302
308
|
var timeout = opts.timeout || 10000;
|
|
303
309
|
delete opts.timeout;
|
|
@@ -451,7 +457,10 @@ var app = {
|
|
|
451
457
|
|
|
452
458
|
savePrefs: function() {
|
|
453
459
|
// save local pref cache back to localStorage
|
|
454
|
-
localStorage.prefs = JSON.stringify( this.prefs );
|
|
460
|
+
try { localStorage.prefs = JSON.stringify( this.prefs ); }
|
|
461
|
+
catch(err) {
|
|
462
|
+
Debug.trace('prefs', "ERROR: Failed to write prefs: " + err);
|
|
463
|
+
}
|
|
455
464
|
},
|
|
456
465
|
|
|
457
466
|
get_base_url: function() {
|
package/js/select.js
CHANGED
|
@@ -1077,7 +1077,7 @@ var KeySelect = {
|
|
|
1077
1077
|
event.stopPropagation();
|
|
1078
1078
|
|
|
1079
1079
|
$('#fe_sel_dialog_key').val( key_id );
|
|
1080
|
-
$('#fe_sel_dialog_text').val( KeySelect.
|
|
1080
|
+
$('#fe_sel_dialog_text').val( KeySelect.getKeyLabel(key_id) );
|
|
1081
1081
|
});
|
|
1082
1082
|
|
|
1083
1083
|
// highlight multiselect field under us
|
package/package.json
CHANGED