Commit Graph

2043 Commits

Author SHA1 Message Date
Max Lynch
4e605979ec fix(listView): No slide drag if no hidden buttons. Fixes #847 2014-03-19 16:47:52 -05:00
Adam Bradley
b8d4c51fe7 fix(input): Fix input label from shifting when text is too long on iOS, closes #801 2014-03-19 16:13:11 -05:00
Adam Bradley
ed9f7e59fa side menu nav test updates 2014-03-19 14:37:19 -05:00
Andy Joslin
b6a73f0807 test(ionicScrollController): fix PhantomJS weirdness 2014-03-19 13:25:35 -06:00
Andy Joslin
abe9e65c6f docs(ionicScrollController): make rememberScrollPosition example clearer 2014-03-19 13:06:35 -06:00
Andy Joslin
6b07208cd5 test(ionicScrollController): remove ddescribe 2014-03-19 13:00:26 -06:00
Adam Bradley
f852661979 check StatusBar obj exists before calling it 2014-03-19 13:59:36 -05:00
Adam Bradley
a637fb4d1b fix(domready): Fixed if firing off callbacks when DOM was already ready 2014-03-19 13:59:36 -05:00
Andy Joslin
0b69ac549a refact(scroll): remove high priority 2014-03-19 12:49:14 -06:00
Andy Joslin
245e2199c6 docs(ionicScrollController): write docs 2014-03-19 12:21:18 -06:00
Andy Joslin
dbe4e3901d feat(ionic): remove all delegates
BREAKING CHANGE: $ionicScrollDelegate, $ionicSlideBoxDelegate, and
$ionicSideMenuDelegate have been removed.

  - $ionicScrollDelegate has been changed to $ionicScrollController.
    Documentation:
    [ionContent](
    http://ajoslin.github.io/docs/nightly/api/directive/ionContent),
    [ionScroll](
    http://ajoslin.github.io/docs/nightly/api/directive/ionScroll)

    Change your code from this:

    ```html
    <ion-content ng-controller="MyCtrl">
      <button ng-click="scrollBottom()">Scroll to bottom!</button>
    </ion-content>
    ```
    ```js
    function MyCtrl($scope, $ionicScrollDelegate) {
      $scope.scrollBottom = function() {
        $ionicScrollDelegate.scrollBottom();
      };
    }
    ```

    To this:

    ```html
    <!-- optional attr controller-bind, see docs -->
    <ion-content ng-controller="MyCtrl">
      <button ng-click="scrollBottom()">Scroll to bottom!</button>
    </ion-content>
    ```
    ```js
    function MyCtrl($scope) {
      $scope.scrollBottom = function() {
        $scope.$ionicScrollController.scrollBottom();
      };
    }
    ```

  - $ionicSideMenuDelegate has been changed to
    $ionicSideMenusController. Documentation:
    [ionSideMenus](http://ajoslin.github.io/docs/nightly/api/directive/ionSideMenus)

    Change your code from this:

    ```html
    <ion-side-menus>
      <ion-side-menu side="left">Side Menu Left</ion-side-menu>
      <ion-pane ion-side-menu-content ng-controller="MyCtrl">
        <button ng-click="toggleLeftMenu()">
          Toggle Left Menu!
        </button>
      </ion-pane>
    </ion-side-menus>
    ```
    ```js
    function MyCtrl($scope, $ionicSideMenuDelegate) {
      $scope.toggleLeftMenu = function() {
        $ionicSideMenuDelegate.toggleLeft();
      };
    }
    ```

    To this:

    ```html
    <!-- optional attr controller-bind, see documentation -->
    <ion-side-menus>
      <ion-side-menu side="left">Side Menu Left</ion-side-menu>
      <ion-pane ion-side-menu-content ng-controller="MyCtrl">
        <button ng-click="toggleLeftMenu()">
          Toggle Left Menu!
        </button>
      </ion-pane>
    </ion-side-menus>
    ```
    ```js
    function MyCtrl($scope) {
      $scope.toggleLeftMenu = function() {
        $scope.$ionicSideMenuController.toggleLeft();
      };
    }
    ```

  - $ionicSlideBoxDelegate has been removed and upgraded to
    $ionicSlideBoxController. It had only one method that
    was unneeded.  [Documentation](
    http://ajoslin.github.io/docs/nightly/api/directive/ionSlideBox)
2014-03-19 11:51:07 -06:00
Adam Bradley
630c6481ff csscomb mixins 2014-03-19 12:39:01 -05:00
Adam Bradley
7dd303da15 gird offset test 2014-03-19 12:33:02 -05:00
Adam Bradley
162b1779e3 Merge pull request #844 from bostondv/master
fix(grid): Remove column offset with responsive grid breaks
2014-03-19 12:32:29 -05:00
Adam Bradley
164187b4aa fix viewState.html test 2014-03-19 12:25:22 -05:00
Adam Bradley
6ebfe776bc fix(popup): Ensure popup is usable on top of a modal, closes #838 2014-03-19 10:55:54 -05:00
Boston Dell-Vandenberg
73ba2a405f feat(grid): Remove column offset with responsive grid breaks 2014-03-19 11:48:44 -04:00
Adam Bradley
26c8f304e7 fix(range): Clicking Line For Range Causes Drag Button To Follow Mouse, close #779 2014-03-19 10:26:11 -05:00
Andy Joslin
295fde8a68 refactor(ionicSideMenuController): make toggleLeft based on percent 2014-03-19 08:47:12 -06:00
Adam Bradley
3d917c83f5 fix(tap): Remove select element from tap checking, closes #836 2014-03-19 08:32:30 -05:00
Adam Bradley
256ab116cd update .item-avatar .item-img to .item-image for consistency w/ thumbnails 2014-03-18 22:56:13 -05:00
Adam Bradley
947b8d6943 fix(item): fix avatar/thumbnail in .item-complex, and avatar misspelling 2014-03-18 22:39:33 -05:00
Adam Bradley
f744d9ebcf feat(navclear): Ability to disable the next view transition and back button 2014-03-18 21:51:32 -05:00
Adam Bradley
ad86651531 created menuClose and navClear directives 2014-03-18 21:44:59 -05:00
Max Lynch
306dd467fe Merge branch 'master' of https://github.com/driftyco/ionic
Conflicts:
	js/ext/angular/test/content.html
2014-03-18 17:53:22 -05:00
Max Lynch
a21c84a8a9 Fun test 2014-03-18 17:52:51 -05:00
Andy Joslin
cd5131c107 tests(): move has-* to classes for ion-content elements 2014-03-18 15:36:13 -06:00
Andy Joslin
532d473e35 feat(ion-content): watch padding attribute 2014-03-18 15:03:42 -06:00
Andy Joslin
ae57b2b81a test($ionicScrollDelegate): remove xdescribe 2014-03-18 14:58:13 -06:00
Max Lynch
00bb385af7 Added animation direction mixin 2014-03-18 15:57:13 -05:00
Max Lynch
9db69cfda4 Fix content demo 2014-03-18 15:57:13 -05:00
Max Lynch
049aabc706 fix(scrollView): pull to refresh spin back. Fixes #774 2014-03-18 15:57:13 -05:00
Adam Bradley
ded469311d fix(badge): Badge horizontal alignment over item right side buttons, closes #826 2014-03-18 15:55:05 -05:00
Andy Joslin
83f4776f53 chore: remove animation & type attributes, standard controller names 2014-03-18 14:54:21 -06:00
Andy Joslin
5117d5673a refactor(ionContent): remove has-* classes
BREAKING CHANGE: ion-content's has-header/footer/tabs attributes
no longer work.

Use the classes 'has-header', 'has-subheader', 'has-footer', and
'has-tabs' to modify the positioning of the ion-content relative
to surrounding elements.

Before: `<ion-content has-header="true">`

After: `<ion-content class="has-header">`
2014-03-18 14:49:12 -06:00
Andy Joslin
7b410eaa61 refactor(ionicBar): fix controller being assigned to parent scope 2014-03-18 14:49:12 -06:00
Peter Collins
9258cde4fe Gulp task to generate Lunr index file 2014-03-18 15:23:27 -05:00
Adam Bradley
5d663a61cc remove modal max-width, closes #824 2014-03-18 14:47:38 -05:00
Max Lynch
33b93924a4 Update CONTRIBUTING.md 2014-03-18 14:44:23 -05:00
Adam Bradley
f602674a19 fix docs method names 2014-03-18 13:19:38 -05:00
Adam Bradley
6627aafe05 improve hiding status bar and reduce flickers 2014-03-18 11:56:24 -05:00
Adam Bradley
ea34da9e26 Salamander 2014-03-18 09:14:26 -05:00
Andy Joslin
a40baff555 tests: update for new directive syntaxes 2014-03-18 08:13:05 -06:00
Adam Bradley
dc138b4fa3 do not remove cordovans deviceready event listener 2014-03-18 09:04:50 -05:00
Adam Bradley
bd4c1f48a5 modify how elements remove active class 2014-03-18 08:48:58 -05:00
Adam Bradley
85b69fd2c4 sideMenu menuNav directive to stop next view animation and close side-menu 2014-03-17 23:06:46 -05:00
Max Lynch
25f8829949 Cleanup whitespace 2014-03-17 19:43:38 -05:00
Max Lynch
dddc34d8d2 fix(popup): focus popup. Fixes #820 2014-03-17 19:41:36 -05:00
Max Lynch
72ee799c4e fix(click): enter key submission blocked. Fixes #819 2014-03-17 19:32:17 -05:00
Andy Joslin
b630214fdf refactor(ionTabBar): remove tab.shown and tab.hidden events
Instead, use `on-select` and `on-deselect` attribute callbacks.

Alternatively, listen for $scope.$on('$destroy') in a controller inside
your tab.
2014-03-17 14:41:51 -06:00