Nathan Loding

JavaScript

Topic: Anything JavaScript, ECMAScript including Node, React, ...
May 8, 2015 03:16
why would the scope change after deploying to a server?
May 8, 2015 03:15
tried w/ w/o $parent on the click and the e-form
May 8, 2015 03:14
<span editable-checkbox="ticket.isPrivate"
e-title="Private?"
onaftersave="updateTicket('visibility')"
e-form="$parent.edit.private"
ng-if="!ticket.isClosed">
{{ ticket.isPrivate ? 'Private' : 'Public' }}
<i class="edit-prop-xs text-muted small glyphicon glyphicon-pencil" ng-click="edit.private.$show()"></i>
</span>
May 8, 2015 03:14
totally stumped; locally, scope works as expected; deploy to the server, the ng-inspector shows a whole new scope being created ... same code
May 8, 2015 03:13
nope, my scope issue from before is not fixed after all
May 8, 2015 02:24
@taco - holy crap that is awesome
May 8, 2015 02:24
oops
May 8, 2015 02:24
@tac
May 8, 2015 02:07
g'night y'all
May 8, 2015 02:07
i quit
May 8, 2015 02:07
aaand it works now
May 8, 2015 02:04
but even if i replace the $show with a custom call in the controller, still goes boom
May 8, 2015 02:04
and it's using the angular-xeditable plugin: vitalets.github.io/angular-xeditable/#text-btn
May 8, 2015 02:03
i know, right? the markup is simple: <i class="edit-prop-xs text-muted small glyphicon glyphicon-pencil" ng-if="!ticket.isClosed" ng-click="edit.private.$show()"></i>
May 8, 2015 02:02
and, of course, it's a private site that i can't send to anyone to help me with
May 8, 2015 02:02
no errors in the console, cleared cache, tried chrome/firefox/ie/safari - i'm way lost
May 8, 2015 01:58
can't recreate in a plunker or jsfiddle sadly
May 8, 2015 01:58
in angular, why would ngClick work when developing locally, but then fail after deploying the code to another server - same browser, same code ??
Mar 25, 2015 18:57
@Luggage nope, you were right ... i'm totally confused now
Mar 25, 2015 18:52
@Luggage it's set on the request itself
Mar 25, 2015 18:49
the angular room is empty - anyone had angular not set the Access-Control-Allow-Origin header on random $http.get requests? it works on some $http.get requests, not others
 

C#

General discussions about the c# language, Squirrels | gist.gi...
Sep 24, 2014 15:05
thanks
Sep 24, 2014 15:02
@CharlieBrown - the error says it is already in context with that primary key, which is why i'm confused when it duplicates
Sep 24, 2014 15:02
oops
Sep 24, 2014 15:02
@Charlie
Sep 24, 2014 14:59
@krillgar - if no one here had an answer i was going to post the question to SO, but i haven't yet
Sep 24, 2014 14:57
i'll get a pastebin or something set up, that was a lot of words
Sep 24, 2014 14:56
@krillgar - getting annoyed with context - i have a parent object (quote) and quote items (with a fk to quoteid to set up the relationship) - when i initially insert a new quote with items on it, it works; if i update that quote, the items get inserted AGAIN instead of updated ... and then if i try to null out that navigation property and save it separately, it says it already exists in context with that primary key
Sep 24, 2014 14:54
any entity framework gurus around?