Changeset 379
- Timestamp:
- 2015-03-12 01:56:41 (10 years ago)
- Location:
- trunk/AltUI
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/AltUI/J_ALTUI_uimgr.js ¶
r378 r379 725 725 if (str == "icons/generic_sensor.png") 726 726 str = "../generic_default.png"; 727 if (str.substr(0,6) == "icons/") 727 else if (str == "icons/Window_Covering.png") 728 str = (_ui7Check==true) ? "../../icons/Window_Covering.png" : "../../../icons/Window_Covering.png"; 729 else if (str.substr(0,6) == "icons/") 728 730 str = "../../../"+str; 729 731 } … … 1010 1012 var val = VeraBox.getStatus( devid, control.Display.Service, control.Display.Variable ) || 0; 1011 1013 var uniqid = devid+"-"+idx; 1012 var symbol = control.LabelSymbol .text;1014 var symbol = control.LabelSymbol ? control.LabelSymbol.text : ''; 1013 1015 $("<div id='altui-slider-horizontal-value-"+uniqid+"' class=''></div>") 1014 1016 .text( val+symbol ) -
TabularUnified trunk/AltUI/J_ALTUI_utils.js ¶
r369 r379 30 30 for (var i=0; i < arguments.length; i++) 31 31 { 32 var replacement = new RegExp('\\{' + i + '\\}', 'g'); // regex requires \ and assignment into string requires \\ 32 var replacement = new RegExp('\\{' + i + '\\}', 'g'); // regex requires \ and assignment into string requires \\, 33 // if ($.type(arguments[i]) === "string") 34 // arguments[i] = arguments[i].replace(/\$/g,'$'); 33 35 content = content.replace(replacement, arguments[i]); 34 36 } -
TabularUnified trunk/AltUI/J_ALTUI_verabox.js ¶
r362 r379 986 986 }) 987 987 .done(function(data) { 988 UIManager.pageMessage("Save Pages was successful", "success"); 988 989 if ( $.isFunction( cbfunc ) ) { 989 990 cbfunc(data); … … 991 992 }) 992 993 .fail(function(jqXHR, textStatus) { 994 UIManager.pageMessage( "Save Pages did not succeed: " + textStatus , "danger"); 993 995 if ( $.isFunction( cbfunc ) ) { 994 996 cbfunc("");
Note: See TracChangeset
for help on using the changeset viewer.