Skip to content

Commit

Permalink
fix repository url for npm
Browse files Browse the repository at this point in the history
  • Loading branch information
iamisti committed Feb 28, 2016
1 parent a75b1c5 commit df9297a
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 37 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mdDataTable",
"version": "1.4.1",
"version": "1.4.2",
"homepage": "https://github.com/iamisti/mdDataTable",
"author":"Istvan Fodor <[email protected]>",
"main": [
Expand Down
68 changes: 34 additions & 34 deletions dist/md-data-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,40 @@
(function(){
'use strict';

InlineEditModalCtrl.$inject = ['$scope', 'position', 'cellData', '$timeout', '$mdDialog'];
function InlineEditModalCtrl($scope, position, cellData, $timeout, $mdDialog){

$timeout(function() {
var el = $('md-dialog');
el.css('position', 'fixed');
el.css('top', position['top']);
el.css('left', position['left']);

el.find('input[type="text"]').focus();
});

$scope.cellData = cellData;
$scope.saveRow = saveRow;
$scope.cancel = cancel;

function saveRow(){
if($scope.editFieldForm.$valid){
$mdDialog.hide(cellData.value);
}
}

function cancel(){
$mdDialog.cancel();
}
}

angular
.module('mdDataTable')
.controller('InlineEditModalCtrl', InlineEditModalCtrl);
}());
(function(){
'use strict';

function mdtAlternateHeadersDirective(){
return {
restrict: 'E',
Expand Down Expand Up @@ -772,40 +806,6 @@
.value('ColumnOptionProvider', ColumnOptionProvider);
})();

(function(){
'use strict';

InlineEditModalCtrl.$inject = ['$scope', 'position', 'cellData', '$timeout', '$mdDialog'];
function InlineEditModalCtrl($scope, position, cellData, $timeout, $mdDialog){

$timeout(function() {
var el = $('md-dialog');
el.css('position', 'fixed');
el.css('top', position['top']);
el.css('left', position['left']);

el.find('input[type="text"]').focus();
});

$scope.cellData = cellData;
$scope.saveRow = saveRow;
$scope.cancel = cancel;

function saveRow(){
if($scope.editFieldForm.$valid){
$mdDialog.hide(cellData.value);
}
}

function cancel(){
$mdDialog.cancel();
}
}

angular
.module('mdDataTable')
.controller('InlineEditModalCtrl', InlineEditModalCtrl);
}());
(function(){
'use strict';

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "md-data-table",
"version": "1.4.1",
"version": "1.4.2",
"author": "Istvan Fodor <[email protected]>",
"registry": "github",
"repository": {
"type": "git",
"url": "git://github.com/angular/iamisti/mdDataTable"
"url": "git://github.com/iamisti/mdDataTable"
},
"license": "MIT",
"devDependencies": {
Expand Down

0 comments on commit df9297a

Please sign in to comment.