This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// <div class="siad-bind" data-model="" data-property="" data-binding="combotext|target=_cbPar" data-value="" style="display:none;"></div> | |
BindingBuilder.Add('combotext', function ($element, properties, options) { | |
var dropdown = window[options['target']]; | |
var $dropdown = $(dropdown.Container).hide(); | |
var length = dropdown.options.length; | |
var $el = $("<input>", { | |
'type' : 'text', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// Define the routes of the application. | |
var app = angular.module('Main', ['keyboardProvider', 'tasksProvider'], function($routeProvider, $locationProvider) { | |
$routeProvider.when('/details/:taskId', { controller: 'ctrl_Details', templateUrl: "view/details.html" }); | |
$routeProvider.when('/new', { controller: 'ctrl_New', templateUrl: "view/new.html" }); | |
$routeProvider.when('/', { controller: 'ctrl_List', templateUrl: 'view/home.html' }); | |
$routeProvider.otherwise({redirectTo:'/'}); | |
}); | |
/// Displays the the full detail view of a task, also applys the filter to show only the history for the results list. | |
app.controller('ctrl_Details', function ($scope: DetailScope, $routeParams: any) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
************** Inline Forms *********************** | |
--> | |
<form class="form-inline"> | |
<input type="text" class="input-small" placeholder="Email"> | |
<input type="password" class="input-small" placeholder="Password"> | |
<label class="checkbox"> | |
<input type="checkbox"> Remember me | |
</label> | |
<button type="submit" class="btn">Sign in</button> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* The MIT License (MIT) | |
Copyright (c) 2013 Sergei Golos | |
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Handles assembling html documents single set of ng-template items. | |
/// </summary> | |
public class AngularTempalteTransform : IBundleTransform | |
{ | |
/// <summary> | |
/// Process the bundle. | |
/// </summary> | |
/// <param name="context">The current bundle context.</param> | |
/// <param name="response">The response object to write to.</param> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function (typeahead) { | |
'use strict'; | |
typeahead.prototype.dispose = function () { | |
if (this.eventSupported('keydown')) { | |
this.$element.off('keydown'); | |
} | |
this.$element.off('focus').off('blur').off('keypress').off('keyup'); | |
this.$element = null; | |
this.$menu.off('click').off('mouseenter').off('mouseleave'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
/** | |
* @ngdoc service | |
* @name toPromiseApp.toPromise | |
* @description | |
* # toPromise | |
* # a service call for wrapping synchronous calls to result in a promise. | |
*/ | |
angular.module('toPromiseApp') |
OlderNewer