Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Ng-dirty class for a control that was not touched
Message
De
09/03/2015 09:39:33
 
 
Information générale
Forum:
Javascript
Catégorie:
Autre
Divers
Thread ID:
01616375
Message ID:
01616483
Vues:
19
>>How about the template ?
>
>
>@using Siriusware.Resources;
><div class="input-group">
>    <input type="text" autocomplete="off" id="{{name}}" name="{{name}}" class="form-control" placeholder="{{placeholder}}" />
>    <span class="input-group-addon datepickerbutton">
>        <!--datepickerbutton:jquery datetimepicker plugin requires this class-->
>        <i class="fa fa-calendar"></i>
>    </span>
>    <span class="input-group-addon datetimepicker-input-addon-button" ng-if="showBod" ng-click='setBod()'><i class="fa fa-sun-o"></i></span>
>    <span class="input-group-addon datetimepicker-input-addon-button" ng-if="showEod" ng-click='setEod()'><i class="fa fa-moon-o"></i></span>
>    <span class="input-group-addon datetimepicker-input-addon-button" ng-if="showNow" ng-click='setNow()'>@Labels.now</span>
></div>
><div class="field-validation-error">
>    <span ng-show="!validStartDateRange()">@Messages.invalidStartDate</span>
>    <span ng-show="!validEndDateRange()">@Messages.invalidEndDate</span>
>    <span ng-show="!validRequired()">@String.Format(Messages.isRequired, Labels.date)</span>
>    <span ng-show="!validFutureDate()">@Messages.invalidFutureDate</span>
>    <span ng-show="!validPastDate()">@Messages.invalidPastDate</span>
></div>
Hmm. Not much help - it links to a ton of other stuff I haven't got so I can't reproduce.

You could try putting a $watch on form.$dirty - if you break there the stack trace may provide clues as to where this is happening.....
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform