Changeset 379


Ignore:
Timestamp:
2015-03-12 01:56:41 (10 years ago)
Author:
amg0
Message:

Fixes for window covering icon on UI7.0.5

Location:
trunk/AltUI
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/AltUI/J_ALTUI_uimgr.js

    r378 r379  
    725725                if (str == "icons/generic_sensor.png") 
    726726                    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/") 
    728730                    str = "../../../"+str; 
    729731            }    
     
    10101012                    var val = VeraBox.getStatus( devid, control.Display.Service, control.Display.Variable ) || 0; 
    10111013                    var uniqid = devid+"-"+idx; 
    1012                     var symbol = control.LabelSymbol.text; 
     1014                    var symbol = control.LabelSymbol ? control.LabelSymbol.text : ''; 
    10131015                    $("<div id='altui-slider-horizontal-value-"+uniqid+"' class=''></div>") 
    10141016                        .text( val+symbol ) 
  • TabularUnified trunk/AltUI/J_ALTUI_utils.js

    r369 r379  
    3030       for (var i=0; i < arguments.length; i++) 
    3131       { 
    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,'$'); 
    3335            content = content.replace(replacement, arguments[i]);   
    3436       } 
  • TabularUnified trunk/AltUI/J_ALTUI_verabox.js

    r362 r379  
    986986        }) 
    987987        .done(function(data) { 
     988            UIManager.pageMessage("Save Pages was successful", "success"); 
    988989            if ( $.isFunction( cbfunc ) )  { 
    989990                cbfunc(data);            
     
    991992        }) 
    992993        .fail(function(jqXHR, textStatus) { 
     994            UIManager.pageMessage( "Save Pages did not succeed: " + textStatus , "danger"); 
    993995            if ( $.isFunction( cbfunc ) )  { 
    994996                cbfunc("");          
Note: See TracChangeset for help on using the changeset viewer.