Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit 4157722

Browse files
committed
InfoPanel: catch modifier evaluation error
CSS: hack transparent backgrounds for IE8 using \9 symbol.
1 parent 36b32ee commit 4157722

File tree

4 files changed

+14
-5
lines changed

4 files changed

+14
-5
lines changed

core/src/plugins/gui.ajax/res/js/ajaxplorer.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/src/plugins/gui.ajax/res/js/ajaxplorer/class.InfoPanel.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -494,8 +494,12 @@ Class.create("InfoPanel", AjxpPane, {
494494
}
495495
this.insertedTemplates.push(registeredTemplates[i]);
496496
if(tModifier){
497-
var modifierFunc = eval(tModifier);
498-
modifierFunc(this.contentContainer, fileNode);
497+
try{
498+
var modifierFunc = eval(tModifier);
499+
}catch(e){
500+
if(console) console.error('InfoPanel: trying to eval function ' + tModifier + ' failed!', e);
501+
}
502+
if(modifierFunc) modifierFunc(this.contentContainer, fileNode);
499503
}
500504
}
501505
if(this.contentContainer.down('#info_panel_primary') && this.contentContainer.down('div.infoPanelAllMetadata')){

core/src/plugins/gui.ajax/res/themes/orbit/css/ajaxplorer.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1479,6 +1479,7 @@ div.dialogBox.form-diaporama_box div.dialogContent{
14791479
float:left;
14801480
width:280px;
14811481
background-color: rgba(50,50,50,0.93);
1482+
background-color: rgb(50,50,50)\9;
14821483
}
14831484

14841485
#cpane_container {
@@ -3370,6 +3371,7 @@ div.tabulatorContainer span.toggleInactive span.tab_close_button:hover {
33703371
font-size: 12px;
33713372
padding: 0;
33723373
background-color: rgba(63, 63, 63, 0.96);
3374+
background-color: rgb(63, 63, 63)\9;
33733375
float: left;
33743376
width: 0;
33753377
overflow: hidden;
@@ -3918,6 +3920,7 @@ div.foldedPanel_tooltip td{
39183920
font-size: 13px;
39193921
letter-spacing: 1px;
39203922
background-color: rgba(107, 107, 107, 0.87);
3923+
background-color: rgb(107, 107, 107)\9;
39213924
color: #fff;
39223925
font-family: "Open Sans Regular", Helvetica, sans-serif;
39233926
-webkit-font-smoothing:auto;
@@ -4165,6 +4168,7 @@ div.infoPanelAllMetadata span.meta_user_tag_block {
41654168
font-size: 0.7em;
41664169
display: inline-block;
41674170
background-color: rgba(52, 94, 121, 0.78);
4171+
background-color: rgb(52, 94, 121)\9;
41684172
color: white;
41694173
padding: 0 7px;
41704174
border-radius: 4px;
@@ -5384,7 +5388,7 @@ span.letter_badge {
53845388
span#alerts_number {
53855389
display: inline-block;
53865390
font-size: 13px;
5387-
background-color: rgba(245, 199, 129, 1);
5391+
background-color: rgb(245, 199, 129);
53885392
color: black;
53895393
border-radius: 20px;
53905394
padding: 0 6px;
@@ -5650,6 +5654,7 @@ div.menuActions img{
56505654
padding: 4px 7px 6px 7px;
56515655
color: #fff;
56525656
background-color: rgba(119, 184, 226, 0.62);
5657+
background-color: rgb(119, 184, 226)\9;
56535658
z-index: 10000;
56545659
border-radius: 3px 3px 0 0;
56555660
width: 25%;

core/src/plugins/gui.ajax/res/themes/orbit/css/allz.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)